diff options
author | Max Horn | 2008-09-16 11:42:21 +0000 |
---|---|---|
committer | Max Horn | 2008-09-16 11:42:21 +0000 |
commit | 706fb37061d96fdf5c8d1a202d6dcc9a799c8d2b (patch) | |
tree | 2951410fcbcd06b5e33f7f997ee8a739ef974505 /engines/agos | |
parent | 3bffca569f6d4677ca5502dbe3a7f8ef33f369be (diff) | |
download | scummvm-rg350-706fb37061d96fdf5c8d1a202d6dcc9a799c8d2b.tar.gz scummvm-rg350-706fb37061d96fdf5c8d1a202d6dcc9a799c8d2b.tar.bz2 scummvm-rg350-706fb37061d96fdf5c8d1a202d6dcc9a799c8d2b.zip |
Modified uncompress in common/zlib.h to return a bool, so that we don't have to #include the real zlib.h; fixed PSP backend to not run uncompress inside an assert (which would cause it to not be invoked when turning off asserts)
svn-id: r34576
Diffstat (limited to 'engines/agos')
-rw-r--r-- | engines/agos/res.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/agos/res.cpp b/engines/agos/res.cpp index 4aca390f3b..cd0d8e7ef6 100644 --- a/engines/agos/res.cpp +++ b/engines/agos/res.cpp @@ -74,8 +74,7 @@ void AGOSEngine::decompressData(const char *srcName, byte *dst, uint32 offset, u error("decompressData: Read failed"); unsigned long decompressedSize = dstSize; - int result = Common::uncompress(dst, &decompressedSize, srcBuffer, srcSize); - if (result != Common::ZLIB_OK) + if (!Common::uncompress(dst, &decompressedSize, srcBuffer, srcSize)) error("decompressData: Zlib uncompress error"); free(srcBuffer); } else { |