Fixed wrong state in SFileAddFile

This commit is contained in:
Ladislav Zezula
2025-04-28 13:55:45 +02:00
parent 774c390223
commit c6d89095fc
3 changed files with 29 additions and 44 deletions

View File

@@ -443,7 +443,7 @@ DWORD SFileAddFile_Init(
// Allocate the TMPQFile entry for newly added file
hf = CreateWritableHandle(ha, dwFileSize);
if(hf == NULL)
return false;
return GetLastError();
// Allocate file entry in the MPQ
if(dwErrCode == ERROR_SUCCESS)