aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorLadislav <Zezula>2014-01-12 13:04:30 +0100
committerLadislav <Zezula>2014-01-12 13:04:30 +0100
commita70a9800220851555272cab6a61e2bb00b867ffb (patch)
tree1c74cf6c4d00080da0c167ea4b30a0f6f290a2a6 /test
parent8bf322b6117a99136d978c192f845c45efe47efa (diff)
+ Fixed crash when ha == NULL in SFileCreateFile
Diffstat (limited to 'test')
-rw-r--r--test/Test.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/Test.cpp b/test/Test.cpp
index f3d4d5a..25f63fb 100644
--- a/test/Test.cpp
+++ b/test/Test.cpp
@@ -3428,6 +3428,9 @@ int main(int argc, char * argv[])
// if(nError == ERROR_SUCCESS)
// nError = FindFilePairs(ForEachFile_CreateArchiveLink, "2004 - WoW\\06080", "2004 - WoW\\06299");
+ HANDLE hFile = NULL;
+ SFileCreateFile(NULL, "huhu", 0, 260, 0, MPQ_FILE_COMPRESS, &hFile);
+
// Search all testing archives and verify their SHA1 hash
if(nError == ERROR_SUCCESS)
nError = FindFiles(ForEachFile_VerifyFileChecksum, szMpqSubDir);