PackageFileHeapWriter::RemoveDataRanges(): Fix empty heap check
This commit is contained in:
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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue