diff options
author | Ladislav Zezula <zezula@volny.cz> | 2020-08-31 07:36:54 +0200 |
---|---|---|
committer | Ladislav Zezula <zezula@volny.cz> | 2020-08-31 07:36:54 +0200 |
commit | 65784a4ee915fe9d737ba761acd084639df5b35e (patch) | |
tree | b31d176d52b371fee4fcc58fe2a4b3da2c2f5d06 /test/StormTest.cpp | |
parent | f438d59c5c10c9d2308ac1bfaff8da54bdbb8c4f (diff) |
Fixed missing hash table in case when HET table exists
Diffstat (limited to 'test/StormTest.cpp')
-rw-r--r-- | test/StormTest.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/test/StormTest.cpp b/test/StormTest.cpp index 6732ed0..979750c 100644 --- a/test/StormTest.cpp +++ b/test/StormTest.cpp @@ -4409,8 +4409,19 @@ int _tmain(int argc, TCHAR * argv[]) printf("==== Test Suite for StormLib version %s ====\n", STORMLIB_VERSION_STRING);
nError = InitializeMpqDirectory(argv, argc);
+ SFILE_FIND_DATA sf;
+ HANDLE hFind = NULL;
HANDLE hMpq = NULL;
- SFileOpenArchive(_T("e:\\Multimedia\\MPQs\\2010 - Starcraft II\\25092\\Updates\\enGB\\s2-update-enGB-24540.MPQ"), 0, 0, &hMpq);
+ if(SFileOpenArchive(_T("e:\\Ladik\\Incoming\\mpq-issue\\SampleB-by861.SC2Map"), 0, MPQ_OPEN_FORCE_LISTFILE, &hMpq))
+ {
+ if((hFind = SFileFindFirstFile(hMpq, "*", &sf, NULL)) != NULL)
+ {
+ SFileFindNextFile(hFind, &sf);
+ SFileFindClose(hFind);
+ }
+
+ SFileCloseArchive(hMpq);
+ }
// Not a test, but rather a tool for creating links to duplicated files
// if(nError == ERROR_SUCCESS)
|