mirror of
https://github.com/ladislav-zezula/StormLib.git
synced 2026-01-25 00:31:33 +01:00
+ Workspaces for Visual Studio 2015
+ Fixed warnings given by VS 2015
This commit is contained in:
@@ -671,7 +671,7 @@ int Patch_InitPatcher(TMPQPatcher * pPatcher, TMPQFile * hf)
|
||||
DWORD cbMaxFileData = 0;
|
||||
|
||||
// Overflow check
|
||||
if((sizeof(MPQ_PATCH_HEADER) + cbMaxFileData) < cbMaxFileData)
|
||||
if((cbMaxFileData + (DWORD)sizeof(MPQ_PATCH_HEADER)) < cbMaxFileData)
|
||||
return ERROR_NOT_ENOUGH_MEMORY;
|
||||
if(hf->hfPatch == NULL)
|
||||
return ERROR_INVALID_PARAMETER;
|
||||
|
||||
Reference in New Issue
Block a user