+ Support for SQP files

+ Several checks added (thanks Dmitry "Vortex" Koteroff)
+ Fixed zlib
+ StormLib no longer changes "/" to "\". Hopefully this won't be problem for Linux and Mac people
This commit is contained in:
Ladislav Zezula
2013-10-11 15:51:18 +02:00
parent 450713b69f
commit 16f2797b8c
24 changed files with 1240 additions and 1644 deletions

View File

@@ -443,15 +443,16 @@ bool WINAPI SFileOpenFileEx(HANDLE hMpq, const char * szFileName, DWORD dwSearch
nError = AllocatePatchInfo(hf, true);
}
// Cleanup
// Cleanup and exit
if(nError != ERROR_SUCCESS)
{
SetLastError(nError);
FreeMPQFile(hf);
return false;
}
*phFile = hf;
return (nError == ERROR_SUCCESS);
return true;
}
//-----------------------------------------------------------------------------