+ Fixed double-free for list file cache

+ Fixed bug with patch prefixes
+ Fixed bug in SFileDecompression2
This commit is contained in:
Ladislav Zezula
2013-01-28 12:46:18 +01:00
parent 46eb01bf66
commit 46af69aeb2
4 changed files with 100 additions and 93 deletions

View File

@@ -1042,7 +1042,7 @@ int WINAPI SCompDecompress2(void * pvOutBuffer, int * pcbOutBuffer, void * pvInB
}
// Apply the first decompression method
nResult = pfnDecompress1(pbWorkBuffer, &cbWorkBuffer, pvInBuffer, cbInBuffer);
nResult = pfnDecompress1(pbWorkBuffer, &cbWorkBuffer, pbInBuffer, cbInBuffer);
// Apply the second decompression method, if any
if(pfnDecompress2 != NULL && nResult != 0)