Locale & platform problems fixed, regression tests done

This commit is contained in:
Ladislav Zezula
2022-10-03 18:52:31 +02:00
parent e9f51a86a7
commit 305583053b
4 changed files with 75 additions and 47 deletions

View File

@@ -441,7 +441,7 @@ DWORD SFileAddFile_Init(
if(dwErrCode == ERROR_SUCCESS)
{
// Check if the file already exists in the archive
pFileEntry = GetFileEntryLocale(ha, szFileName, lcFileLocale, &dwHashIndex);
pFileEntry = GetFileEntryExact(ha, szFileName, lcFileLocale, &dwHashIndex);
if(pFileEntry != NULL)
{
if(dwFlags & MPQ_FILE_REPLACEEXISTING)