+ Workspaces for Visual Studio 2015

+ Fixed warnings given by VS 2015
This commit is contained in:
unknown
2015-10-04 12:21:43 +02:00
parent bd12a6d900
commit 5a943c56fc
13 changed files with 1100 additions and 2105 deletions

View File

@@ -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;