+ md5 initialization for error cases

This commit is contained in:
Ladislav Zezula
2013-10-10 08:54:04 +02:00
parent 88b74cc6af
commit f34726aa3b

View File

@@ -638,6 +638,9 @@ static DWORD VerifyFile(
// automatically check the patched version of the file
//
// Make sure the md5 is initialized
memset(md5, 0, sizeof(md5));
// If we have to verify raw data MD5, do it before file open
if(dwFlags & SFILE_VERIFY_RAW_MD5)
{