aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <E:\Ladik\Mail>2015-06-28 23:34:01 +0200
committerunknown <E:\Ladik\Mail>2015-06-28 23:34:01 +0200
commit32ca2970f42277797fedfbae5cfa5466ab97b6af (patch)
tree2990ce170237f07dda78f21d9f9db9ae3493324a
parentb8452410f407eeedd64e1b0f0270d94c26987b2e (diff)
+ Fixed declaration of DllMain to keep MINGW happy
-rw-r--r--stormlib_dll/DllMain.c2
-rw-r--r--test/StormTest.cpp5
2 files changed, 4 insertions, 3 deletions
diff --git a/stormlib_dll/DllMain.c b/stormlib_dll/DllMain.c
index cbfa84a..f1b9167 100644
--- a/stormlib_dll/DllMain.c
+++ b/stormlib_dll/DllMain.c
@@ -14,7 +14,7 @@
//-----------------------------------------------------------------------------
// DllMain
-DWORD WINAPI DllMain(HINSTANCE hInst, DWORD dwReason, LPVOID lpReserved)
+BOOL WINAPI DllMain(HINSTANCE hInst, DWORD dwReason, LPVOID lpReserved)
{
UNREFERENCED_PARAMETER(hInst);
UNREFERENCED_PARAMETER(dwReason);
diff --git a/test/StormTest.cpp b/test/StormTest.cpp
index 51654a0..b67e851 100644
--- a/test/StormTest.cpp
+++ b/test/StormTest.cpp
@@ -3181,6 +3181,7 @@ static int TestCreateArchive_Deprotect(const char * szPlainName)
return nError;
}
*/
+
static int TestCreateArchive_EmptyMpq(const char * szPlainName, DWORD dwCreateFlags)
{
TLogHelper Logger("CreateEmptyMpq", szPlainName);
@@ -4087,7 +4088,7 @@ int main(int argc, char * argv[])
// Search all testing archives and verify their SHA1 hash
// if(nError == ERROR_SUCCESS)
// nError = FindFiles(ForEachFile_VerifyFileChecksum, szMpqSubDir);
-
+/*
// Test sparse compression
if(nError == ERROR_SUCCESS)
nError = TestSparseCompression();
@@ -4430,7 +4431,7 @@ int main(int argc, char * argv[])
// Test replacing a file with zero size file
if(nError == ERROR_SUCCESS)
nError = TestModifyArchive_ReplaceFile("MPQ_2014_v4_Base.StormReplay", "AddFile-replay.message.events");
-
+*/
#ifdef _MSC_VER
_CrtDumpMemoryLeaks();
#endif // _MSC_VER