aboutsummaryrefslogtreecommitdiff
path: root/test/StormTest.cpp
diff options
context:
space:
mode:
authorLadislav Zezula <zezula@volny.cz>2023-02-02 09:16:17 +0100
committerGitHub <noreply@github.com>2023-02-02 09:16:17 +0100
commit9beaed54cd6ef17ba3e0209233a29bd74184de6f (patch)
treeed61bc3a7c30bfe07756eba87930a1045c81cc28 /test/StormTest.cpp
parent999ee276cfd7420abaf7566932b591677aff184f (diff)
parent42b4a8f73d24ec0e73b1d886da11b4f4634b6ab6 (diff)
Merge pull request #282 from ladislav-zezula/LZ_ReduceBuildTime
Reduced build time in Windows
Diffstat (limited to 'test/StormTest.cpp')
-rw-r--r--test/StormTest.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/test/StormTest.cpp b/test/StormTest.cpp
index ca409f1..e8a52dc 100644
--- a/test/StormTest.cpp
+++ b/test/StormTest.cpp
@@ -36,6 +36,8 @@
//------------------------------------------------------------------------------
// Local structures
+#define ID_XHSC 0x58485343 // 'XHSC'
+
// Artificial error code for situations where we don't know the result
#define ERROR_UNDETERMINED_RESULT 0xC000FFFF
@@ -230,8 +232,8 @@ static const wchar_t szUnicodeName6[] = { // Arabic
static SFILE_MARKERS MpqMarkers[] =
{
- {sizeof(SFILE_MARKERS), ID_MPQ, "(hash table)", "(block table)"},
- {sizeof(SFILE_MARKERS), 'XHSC', "(cash table)", "(clock table)"}
+ {sizeof(SFILE_MARKERS), ID_MPQ, "(hash table)", "(block table)"},
+ {sizeof(SFILE_MARKERS), ID_XHSC, "(cash table)", "(clock table)"}
};
//-----------------------------------------------------------------------------
@@ -2242,7 +2244,7 @@ static DWORD TestArchive_LoadFiles(TLogHelper * pLogger, HANDLE hMpq, DWORD bIgn
if(SFileHasFile(hMpq, szFileName))
{
dwErrCode = LoadMpqFile(*pLogger, hMpq, szFileName, 0, dwSearchFlags, &pFileData);
- if(dwErrCode != ERROR_SUCCESS && bIgnoreOpenErrors == FALSE)
+ if(dwErrCode != ERROR_SUCCESS && bIgnoreOpenErrors == 0)
{
pLogger->PrintError("Error loading the file %s", szFileName);
break;
@@ -2760,7 +2762,7 @@ static DWORD TestOpenArchive_SignatureTest(LPCTSTR szPlainName, LPCTSTR szOrigin
return dwErrCode;
}
-static DWORD TestOpenArchive_CompactArchive(LPCTSTR szPlainName, LPCTSTR szCopyName, BOOL bAddUserData)
+static DWORD TestOpenArchive_CompactArchive(LPCTSTR szPlainName, LPCTSTR szCopyName, DWORD bAddUserData)
{
TLogHelper Logger("CompactMpqTest", szPlainName);
ULONGLONG PreMpqDataSize = (bAddUserData) ? 0x400 : 0;
@@ -4209,7 +4211,7 @@ int _tmain(int argc, TCHAR * argv[])
break;
}
}
-#endif TEST_STREAM_OPERATIONS
+#endif // TEST_STREAM_OPERATIONS
#ifdef TEST_MASTER_MIRROR // Test master-mirror reading operations
if(dwErrCode == ERROR_SUCCESS)