PackageFileHeapWriter::RemoveDataRanges(): Fix empty heap check

This commit is contained in:
Ingo Weinhold
2013-05-25 01:12:34 +02:00
parent bac0bb2e8f
commit 4ffb923413
@@ -291,7 +291,7 @@ PackageFileHeapWriter::RemoveDataRanges(
if (rangeCount == 0)
return;
if (fOffsets.IsEmpty()) {
if (fUncompressedHeapSize == 0) {
fErrorOutput->PrintError("Can't remove ranges from empty heap\n");
throw status_t(B_BAD_VALUE);
}