diff --git a/src/SCompression.cpp b/src/SCompression.cpp index df4ee16..ae7082b 100644 --- a/src/SCompression.cpp +++ b/src/SCompression.cpp @@ -176,7 +176,7 @@ int Decompress_ZLIB(void * pvOutBuffer, int * pcbOutBuffer, void * pvInBuffer, i inflateEnd(&z); } - return (nResult == Z_OK); + return (nResult >= Z_OK); } /******************************************************************************/ diff --git a/test/StormTest.cpp b/test/StormTest.cpp index 8786b06..44d65de 100644 --- a/test/StormTest.cpp +++ b/test/StormTest.cpp @@ -1524,8 +1524,8 @@ static TFileData * LoadMpqFile(TLogHelper * pLogger, HANDLE hMpq, LPCSTR szFileN // Load the entire file if(dwErrCode == ERROR_SUCCESS) { - if(!stricmp(szFileName, "replay.game.events")) - __debugbreak(); + //if(!stricmp(szFileName, "replay.game.events")) + // __debugbreak(); // Read the file data SFileReadFile(hFile, pFileData->FileData, dwFileSizeLo, &dwBytesRead, NULL);