aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLadislav Zezula <zezula@volny.cz>2025-04-28 13:55:45 +0200
committerLadislav Zezula <zezula@volny.cz>2025-04-28 13:55:45 +0200
commitc6d89095fcdcaa83987d64040f44416bd9083f25 (patch)
treecfc6ab0f5dd00ea0b601d573eca98fe8a6355c10 /src
parent774c3902232603e7700983b7d4d697a97a8c7c83 (diff)
Fixed wrong state in SFileAddFile
Diffstat (limited to 'src')
-rw-r--r--src/SFileAddFile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SFileAddFile.cpp b/src/SFileAddFile.cpp
index 54dcbc5..f98a185 100644
--- a/src/SFileAddFile.cpp
+++ b/src/SFileAddFile.cpp
@@ -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)