Revert "Fix one more status_t/ssize_t mixup."

This reverts commit f6658d2c2c.
This commit is contained in:
Ingo Weinhold 2014-06-18 21:26:46 +02:00
parent cc66d3a051
commit 3528fd2d66

View File

@ -87,7 +87,7 @@ ZlibDecompressor::DecompressNext(const void* input, size_t inputSize)
if (fStream.avail_out < sizeof(outputBuffer)) {
status_t error = fOutput->Write(outputBuffer,
sizeof(outputBuffer) - fStream.avail_out);
if (error < B_OK)
if (error != B_OK)
return error;
}
}
@ -116,7 +116,7 @@ ZlibDecompressor::Finish()
if (fStream.avail_out < sizeof(outputBuffer)) {
status_t error = fOutput->Write(outputBuffer,
sizeof(outputBuffer) - fStream.avail_out);
if (error < B_OK)
if (error != B_OK)
return error;
}
}