aboutsummaryrefslogtreecommitdiff
path: root/test/StormTest.cpp
diff options
context:
space:
mode:
authorLadislav Zezula <ladislav.zezula@avg.com>2016-03-22 10:56:51 +0100
committerLadislav Zezula <ladislav.zezula@avg.com>2016-03-22 10:56:51 +0100
commited195c0d727ef4ea7d74d663b0f437bbac32233a (patch)
tree6666442671976b7647ff1d50470d5ba2a801c351 /test/StormTest.cpp
parent4317b58e4eab1cb058907fbbaf0a5e8ae48cdb8c (diff)
+ Support for protectors that set hash table offset to zero
+ Support for protectors that set block table offset to zero
Diffstat (limited to 'test/StormTest.cpp')
-rw-r--r--test/StormTest.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/test/StormTest.cpp b/test/StormTest.cpp
index 2f2b272..3b92fd1 100644
--- a/test/StormTest.cpp
+++ b/test/StormTest.cpp
@@ -4240,11 +4240,11 @@ int main(int argc, char * argv[])
// Test working with an archive that has no listfile
if(nError == ERROR_SUCCESS)
nError = TestOpenFile_OpenById("MPQ_1997_v1_Diablo1_DIABDAT.MPQ");
-*/
+
// Open the update MPQ from Diablo II (patch 2016)
if(nError == ERROR_SUCCESS)
nError = TestOpenFile_OpenByName("MPQ_2016_v1_D2XP_IX86_1xx_114a.mpq", "waitingroombkgd.dc6");
-/*
+
// Open a file whose archive's (signature) file has flags = 0x90000000
if(nError == ERROR_SUCCESS)
nError = TestOpenArchive("MPQ_1997_v1_Diablo1_STANDARD.SNP", "ListFile_Blizzard.txt");
@@ -4343,7 +4343,11 @@ int main(int argc, char * argv[])
// Open another protected map
if(nError == ERROR_SUCCESS)
nError = TestOpenArchive("MPQ_2016_v1_ProtectedMap_TableSizeOverflow.w3x");
-
+*/
+ // Open another protected map
+ if(nError == ERROR_SUCCESS)
+ nError = TestOpenArchive("MPQ_2016_v1_ProtectedMap_HashOffsIsZero.w3x");
+/*
// Open the multi-file archive with wrong prefix to see how StormLib deals with it
if(nError == ERROR_SUCCESS)
nError = TestOpenArchive_WillFail("flat-file://streaming/model.MPQ.0");