summaryrefslogtreecommitdiff
path: root/test/Test.cpp
diff options
context:
space:
mode:
authorLadislav <Zezula>2013-09-15 10:23:57 +0200
committerLadislav <Zezula>2013-09-15 10:23:57 +0200
commitfd9326ba5cb40c07205b9b4fa4ca6a8567b43a69 (patch)
treec415ebbef8e99d747890a462afd978d73343790b /test/Test.cpp
parentdab826ac100f72306229dc2b57c4996011dfd530 (diff)
+ Fixed possible division by zero in LoadMpqDataBitmap
+ Updated zlib to version 1.2.5 (the same like current WoW build uses)
Diffstat (limited to 'test/Test.cpp')
-rw-r--r--test/Test.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/Test.cpp b/test/Test.cpp
index f3d78c5..c584578 100644
--- a/test/Test.cpp
+++ b/test/Test.cpp
@@ -1172,7 +1172,7 @@ static int TestArchiveOpenAndClose(const TCHAR * szMpqName)
if(nError == ERROR_SUCCESS)
{
_tprintf(_T("Opening archive %s ...\n"), szMpqName);
- if(!SFileOpenArchive(szMpqName, 0, STREAM_FLAG_READ_ONLY | BASE_PROVIDER_MAP, &hMpq))
+ if(!SFileOpenArchive(szMpqName, 0, SFILE_OPEN_HARD_DISK_FILE | BASE_PROVIDER_FILE, &hMpq))
nError = GetLastError();
ha = (TMPQArchive *)hMpq;
}
@@ -2201,8 +2201,8 @@ int main(void)
// nError = CompareHuffmanCompressions0();
// }
- if(nError == ERROR_SUCCESS)
- nError = ComparePklibCompressions();
+// if(nError == ERROR_SUCCESS)
+// nError = ComparePklibCompressions();
// Test LZMA compression method against the code ripped from Starcraft II
// if(nError == ERROR_SUCCESS)
@@ -2213,8 +2213,8 @@ int main(void)
// nError = TestSectorCompress(MPQ_SECTOR_SIZE);
// Test the archive open and close
-// if(nError == ERROR_SUCCESS)
-// nError = TestArchiveOpenAndClose(MAKE_PATH("Battle.net.MPQ"));
+ if(nError == ERROR_SUCCESS)
+ nError = TestArchiveOpenAndClose(MAKE_PATH("Base.SC2Assets"));
// if(nError == ERROR_SUCCESS)
// nError = TestFindFiles(MAKE_PATH("2002 - Warcraft III/HumanEd.mpq"));