PackageFileHeapWriter::RemoveDataRanges(): Fix empty heap check

This commit is contained in:
Ingo Weinhold 2013-05-23 21:07:08 +02:00
parent bac0bb2e8f
commit 4ffb923413
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}