PackageWriterImpl: Fix reading the package-info in update mode
This commit is contained in:
@@ -816,7 +816,8 @@ PackageWriterImpl::_UpdateReadPackageInfo()
|
|||||||
// data on heap -- read from there
|
// data on heap -- read from there
|
||||||
status_t error = fHeapWriter->ReadData(data.Offset(), valueBuffer,
|
status_t error = fHeapWriter->ReadData(data.Offset(), valueBuffer,
|
||||||
data.Size());
|
data.Size());
|
||||||
throw error;
|
if (error != B_OK)
|
||||||
|
throw error;
|
||||||
}
|
}
|
||||||
|
|
||||||
valueString.UnlockBuffer();
|
valueString.UnlockBuffer();
|
||||||
|
|||||||
Reference in New Issue
Block a user