diff options
author | Ladislav Zezula <ladislav.zezula@avg.com> | 2013-12-12 11:15:16 +0100 |
---|---|---|
committer | Ladislav Zezula <ladislav.zezula@avg.com> | 2013-12-12 11:15:16 +0100 |
commit | 6961cd51b65e8df7f807e25ab6ffc4da8c205449 (patch) | |
tree | 48bcfa6c0bb51171b3cb25330abb0e5caf051ff9 | |
parent | 5106d34fdaaf6378abf0fa8bb0b30d54a487e398 (diff) |
+ Fixed warnings
+ Added SBaseDumpData to the makefiles
-rw-r--r-- | CMakeLists.txt | 1 | ||||
-rw-r--r-- | Makefile.linux | 1 | ||||
-rw-r--r-- | Makefile.mac | 1 | ||||
-rw-r--r-- | StormLib.xcodeproj/project.pbxproj | 54 | ||||
-rw-r--r-- | makefile.w32 | 1 | ||||
-rw-r--r-- | src/FileStream.cpp | 2 | ||||
-rw-r--r-- | src/SBaseFileTable.cpp | 8 | ||||
-rw-r--r-- | src/SBaseSubTypes.cpp | 1 | ||||
-rw-r--r-- | src/SFileGetFileInfo.cpp | 3 | ||||
-rw-r--r-- | src/SFileReadFile.cpp | 6 | ||||
-rw-r--r-- | test/TLogHelper.cpp | 8 | ||||
-rw-r--r-- | test/Test.cpp | 8 |
12 files changed, 54 insertions, 40 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ac80fd6..3b22069 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,6 +13,7 @@ set(SRC_FILES src/sparse/sparse.cpp src/FileStream.cpp src/SBaseCommon.cpp + src/SBaseDumpData.cpp src/SBaseFileTable.cpp src/SBaseSubTypes.cpp src/SCompression.cpp diff --git a/Makefile.linux b/Makefile.linux index 48c6be9..46cdd1c 100644 --- a/Makefile.linux +++ b/Makefile.linux @@ -31,6 +31,7 @@ OBJS = src/adpcm/adpcm.o \ src/FileStream.o \ src/huffman/huff.o \ src/SBaseCommon.o \ + src/SBaseDumpData.o \ src/SBaseFileTable.o \ src/SBaseSubTypes.o \ src/SCompression.o \ diff --git a/Makefile.mac b/Makefile.mac index 66d8aa1..f024f2c 100644 --- a/Makefile.mac +++ b/Makefile.mac @@ -24,6 +24,7 @@ OBJS_CPP = src/adpcm/adpcm.obj \ src/sparse/sparse.obj \ src/FileStream.obj \ src/SBaseCommon.o \ + src/SBaseDumpData.o \ src/SBaseFileTable.o \ src/SBaseSubTypes.o \ src/SCompression.obj \ diff --git a/StormLib.xcodeproj/project.pbxproj b/StormLib.xcodeproj/project.pbxproj index 319e263..7ee4f29 100644 --- a/StormLib.xcodeproj/project.pbxproj +++ b/StormLib.xcodeproj/project.pbxproj @@ -70,6 +70,12 @@ 225FACB50E53BAB400DA2CAE /* SFileListFile.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 32ED00B40D03542A00AB0B4E /* SFileListFile.cpp */; }; 225FADD40E53C06600DA2CAE /* libbz2.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 32D20A8A0CF3902D00230E7A /* libbz2.dylib */; settings = {ATTRIBUTES = (Required, ); }; }; 225FADD50E53C06600DA2CAE /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 32D20A8B0CF3902D00230E7A /* libz.dylib */; settings = {ATTRIBUTES = (Required, ); }; }; + 226C7CA71857DE9400AB689C /* SBaseDumpData.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 226C7CA61857DE9400AB689C /* SBaseDumpData.cpp */; }; + 226C7CA81857DE9400AB689C /* SBaseDumpData.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 226C7CA61857DE9400AB689C /* SBaseDumpData.cpp */; }; + 226C7CAA1857DEAC00AB689C /* SBaseSubTypes.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 226C7CA91857DEAC00AB689C /* SBaseSubTypes.cpp */; }; + 226C7CAB1857DEAC00AB689C /* SBaseSubTypes.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 226C7CA91857DEAC00AB689C /* SBaseSubTypes.cpp */; }; + 226C7CAD1857DEEB00AB689C /* SFileGetFileInfo.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 226C7CAC1857DEEB00AB689C /* SFileGetFileInfo.cpp */; }; + 226C7CAE1857DEEB00AB689C /* SFileGetFileInfo.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 226C7CAC1857DEEB00AB689C /* SFileGetFileInfo.cpp */; }; 228B538411BF7D0D001A58DA /* FileStream.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 228B538311BF7D0D001A58DA /* FileStream.cpp */; }; 228B538511BF7D0D001A58DA /* FileStream.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 228B538311BF7D0D001A58DA /* FileStream.cpp */; }; 22954AD211D463AB0064B264 /* Test.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 2295488911D45A820064B264 /* Test.cpp */; }; @@ -509,6 +515,9 @@ 225C73531257CD0C0009E8DA /* SBaseFileTable.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = SBaseFileTable.cpp; path = src/SBaseFileTable.cpp; sourceTree = "<group>"; }; 225FAC940E53B7F800DA2CAE /* StormLib.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = StormLib.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 225FAC950E53B7F800DA2CAE /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; }; + 226C7CA61857DE9400AB689C /* SBaseDumpData.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = SBaseDumpData.cpp; path = src/SBaseDumpData.cpp; sourceTree = "<group>"; }; + 226C7CA91857DEAC00AB689C /* SBaseSubTypes.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = SBaseSubTypes.cpp; path = src/SBaseSubTypes.cpp; sourceTree = "<group>"; }; + 226C7CAC1857DEEB00AB689C /* SFileGetFileInfo.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = SFileGetFileInfo.cpp; path = src/SFileGetFileInfo.cpp; sourceTree = "<group>"; }; 228B538311BF7D0D001A58DA /* FileStream.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = FileStream.cpp; path = src/FileStream.cpp; sourceTree = "<group>"; }; 2295488911D45A820064B264 /* Test.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Test.cpp; path = test/Test.cpp; sourceTree = "<group>"; }; 22954ACE11D463A30064B264 /* StormLib_Test */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = StormLib_Test; sourceTree = BUILT_PRODUCTS_DIR; }; @@ -1164,7 +1173,9 @@ 228B538311BF7D0D001A58DA /* FileStream.cpp */, 22EC6043154B28A000679228 /* FileStream.h */, 32ED00AA0D03542A00AB0B4E /* SBaseCommon.cpp */, + 226C7CA61857DE9400AB689C /* SBaseDumpData.cpp */, 225C73531257CD0C0009E8DA /* SBaseFileTable.cpp */, + 226C7CA91857DEAC00AB689C /* SBaseSubTypes.cpp */, 32ED00AC0D03542A00AB0B4E /* SCompression.cpp */, 2299DA4D1167FD16005C19BF /* SFileAddFile.cpp */, 32ED00A90D03542A00AB0B4E /* SFileAttributes.cpp */, @@ -1172,6 +1183,7 @@ 32ED00AE0D03542A00AB0B4E /* SFileCreateArchive.cpp */, 32ED00AF0D03542A00AB0B4E /* SFileExtractFile.cpp */, 32ED00B00D03542A00AB0B4E /* SFileFindFile.cpp */, + 226C7CAC1857DEEB00AB689C /* SFileGetFileInfo.cpp */, 32ED00B40D03542A00AB0B4E /* SFileListFile.cpp */, 32ED00B10D03542A00AB0B4E /* SFileOpenArchive.cpp */, 32ED00B20D03542A00AB0B4E /* SFileOpenFileEx.cpp */, @@ -1344,7 +1356,7 @@ 0867D690FE84028FC02AAC07 /* Project object */ = { isa = PBXProject; attributes = { - LastUpgradeCheck = 0430; + LastUpgradeCheck = 0500; }; buildConfigurationList = 1DEB916408733D950010E9CD /* Build configuration list for PBXProject "StormLib" */; compatibilityVersion = "Xcode 3.2"; @@ -1382,8 +1394,10 @@ files = ( 225530E31056BC8700FA646A /* huff.cpp in Sources */, 225530E61056BC8700FA646A /* explode.c in Sources */, + 226C7CA71857DE9400AB689C /* SBaseDumpData.cpp in Sources */, 225530E71056BC8700FA646A /* implode.c in Sources */, 225530E81056BC8700FA646A /* SFileAttributes.cpp in Sources */, + 226C7CAA1857DEAC00AB689C /* SBaseSubTypes.cpp in Sources */, 225530E91056BC8700FA646A /* SBaseCommon.cpp in Sources */, 225530EA1056BC8700FA646A /* SCompression.cpp in Sources */, 225530EB1056BC8700FA646A /* SFileCompactArchive.cpp in Sources */, @@ -1391,6 +1405,7 @@ 225530ED1056BC8700FA646A /* SFileExtractFile.cpp in Sources */, 225530EE1056BC8700FA646A /* SFileFindFile.cpp in Sources */, 225530EF1056BC8700FA646A /* SFileOpenArchive.cpp in Sources */, + 226C7CAD1857DEEB00AB689C /* SFileGetFileInfo.cpp in Sources */, 225530F01056BC8700FA646A /* SFileOpenFileEx.cpp in Sources */, 225530F11056BC8700FA646A /* SFileReadFile.cpp in Sources */, 225530F21056BC8700FA646A /* SFileListFile.cpp in Sources */, @@ -1593,8 +1608,10 @@ files = ( 225FACA50E53BAB400DA2CAE /* huff.cpp in Sources */, 225FACA90E53BAB400DA2CAE /* explode.c in Sources */, + 226C7CA81857DE9400AB689C /* SBaseDumpData.cpp in Sources */, 225FACAA0E53BAB400DA2CAE /* implode.c in Sources */, 225FACAB0E53BAB400DA2CAE /* SFileAttributes.cpp in Sources */, + 226C7CAB1857DEAC00AB689C /* SBaseSubTypes.cpp in Sources */, 225FACAC0E53BAB400DA2CAE /* SBaseCommon.cpp in Sources */, 225FACAD0E53BAB400DA2CAE /* SCompression.cpp in Sources */, 225FACAE0E53BAB400DA2CAE /* SFileCompactArchive.cpp in Sources */, @@ -1602,6 +1619,7 @@ 225FACB00E53BAB400DA2CAE /* SFileExtractFile.cpp in Sources */, 225FACB10E53BAB400DA2CAE /* SFileFindFile.cpp in Sources */, 225FACB20E53BAB400DA2CAE /* SFileOpenArchive.cpp in Sources */, + 226C7CAE1857DEEB00AB689C /* SFileGetFileInfo.cpp in Sources */, 225FACB30E53BAB400DA2CAE /* SFileOpenFileEx.cpp in Sources */, 225FACB40E53BAB400DA2CAE /* SFileReadFile.cpp in Sources */, 225FACB50E53BAB400DA2CAE /* SFileListFile.cpp in Sources */, @@ -1824,16 +1842,17 @@ ARCHS = "$(ARCHS_STANDARD_32_64_BIT)"; COPY_PHASE_STRIP = NO; DEBUG_INFORMATION_FORMAT = dwarf; + GCC_C_LANGUAGE_STANDARD = c89; GCC_GENERATE_DEBUGGING_SYMBOLS = YES; GCC_OPTIMIZATION_LEVEL = 0; GCC_PREPROCESSOR_DEFINITIONS_NOT_USED_IN_PRECOMPS = ( _7ZIP_ST, _DEBUG, ); - GCC_VERSION = com.apple.compilers.llvmgcc42; + GCC_VERSION = ""; GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.4; + MACOSX_DEPLOYMENT_TARGET = 10.6; ONLY_ACTIVE_ARCH = YES; SDKROOT = macosx; SKIP_INSTALL = YES; @@ -1848,12 +1867,13 @@ ARCHS = "$(ARCHS_STANDARD_32_64_BIT)"; COPY_PHASE_STRIP = YES; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + GCC_C_LANGUAGE_STANDARD = c89; GCC_GENERATE_DEBUGGING_SYMBOLS = NO; GCC_PREPROCESSOR_DEFINITIONS_NOT_USED_IN_PRECOMPS = _7ZIP_ST; - GCC_VERSION = com.apple.compilers.llvmgcc42; + GCC_VERSION = ""; GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.4; + MACOSX_DEPLOYMENT_TARGET = 10.6; SDKROOT = macosx; SKIP_INSTALL = YES; STRIP_INSTALLED_PRODUCT = YES; @@ -1866,6 +1886,7 @@ COPY_PHASE_STRIP = NO; GCC_DYNAMIC_NO_PIC = NO; GCC_OPTIMIZATION_LEVEL = 0; + GCC_VERSION = ""; INSTALL_PATH = /usr/local/lib; PRODUCT_NAME = StormLib; }; @@ -1875,6 +1896,7 @@ isa = XCBuildConfiguration; buildSettings = { COPY_PHASE_STRIP = YES; + GCC_VERSION = ""; INSTALL_PATH = /usr/local/lib; PRODUCT_NAME = StormLib; }; @@ -1883,15 +1905,13 @@ 225FAC960E53B7F900DA2CAE /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { + COMBINE_HIDPI_IMAGES = YES; EXPORTED_SYMBOLS_FILE = "$(PROJECT_DIR)/stormlib_dll/StormLib.exp"; FRAMEWORK_VERSION = A; GCC_DYNAMIC_NO_PIC = NO; + GCC_VERSION = com.apple.compilers.llvm.clang.1_0; INFOPLIST_FILE = Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - LIBRARY_SEARCH_PATHS = ( - "$(inherited)", - /usr/lib/clang/3.1/lib/darwin, - ); PRODUCT_NAME = StormLib; }; name = Debug; @@ -1899,14 +1919,12 @@ 225FAC970E53B7F900DA2CAE /* Release */ = { isa = XCBuildConfiguration; buildSettings = { + COMBINE_HIDPI_IMAGES = YES; EXPORTED_SYMBOLS_FILE = "$(PROJECT_DIR)/stormlib_dll/StormLib.exp"; FRAMEWORK_VERSION = A; + GCC_VERSION = com.apple.compilers.llvm.clang.1_0; INFOPLIST_FILE = Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - LIBRARY_SEARCH_PATHS = ( - "$(inherited)", - /usr/lib/clang/3.1/lib/darwin, - ); PRODUCT_NAME = StormLib; }; name = Release; @@ -1923,11 +1941,8 @@ _DEBUG, __STORMLIB_TEST__, ); + GCC_VERSION = com.apple.compilers.llvm.clang.1_0; INSTALL_PATH = /usr/local/bin; - LIBRARY_SEARCH_PATHS = ( - "$(inherited)", - /usr/lib/clang/3.1/lib/darwin, - ); PRODUCT_NAME = StormLib_Test; }; name = Debug; @@ -1938,11 +1953,8 @@ ALWAYS_SEARCH_USER_PATHS = NO; COPY_PHASE_STRIP = YES; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + GCC_VERSION = com.apple.compilers.llvm.clang.1_0; INSTALL_PATH = /usr/local/bin; - LIBRARY_SEARCH_PATHS = ( - "$(inherited)", - /usr/lib/clang/3.1/lib/darwin, - ); PRODUCT_NAME = StormLib_Test; }; name = Release; diff --git a/makefile.w32 b/makefile.w32 index 7435bd8..3ea576a 100644 --- a/makefile.w32 +++ b/makefile.w32 @@ -26,6 +26,7 @@ OBJS_CPP = src/adpcm/adpcm.o \ src/sparse/sparse.o \ src/FileStream.o \ src/SBaseCommon.o \ + src/SBaseDumpData.o \ src/SBaseFileTable.o \ src/SBaseSubTypes.o \ src/SCompression.o \ diff --git a/src/FileStream.cpp b/src/FileStream.cpp index 03a8fea..a081bd7 100644 --- a/src/FileStream.cpp +++ b/src/FileStream.cpp @@ -713,7 +713,7 @@ static const TCHAR * BaseHttp_ExtractServerName(const TCHAR * szFileName, TCHAR else { while(szFileName[0] != 0 && szFileName[0] != _T('/')) - *szFileName++; + szFileName++; } // Return the remainder diff --git a/src/SBaseFileTable.cpp b/src/SBaseFileTable.cpp index bf6be59..d4155bd 100644 --- a/src/SBaseFileTable.cpp +++ b/src/SBaseFileTable.cpp @@ -229,12 +229,10 @@ void SetBits( //----------------------------------------------------------------------------- // Support for MPQ header -static DWORD GetMaxFileOffset32(TMPQArchive * ha, TMPQBlock * pBlockTable, DWORD dwBlockTableSize) +static DWORD GetMaxFileOffset32(TMPQArchive * ha) { TMPQHeader * pHeader = ha->pHeader; DWORD dwMaxFileOffset = ha->pHeader->dwArchiveSize; - DWORD dwByteOffset; - DWORD dwBlockIndex; // We can call this only for malformed archives v 1.0 assert(ha->pHeader->wFormatVersion == MPQ_FORMAT_VERSION_1); @@ -2230,7 +2228,7 @@ static void FixCompressedFileSize( if(SortTable != NULL) { // Calculate the end of the archive - dwMaxFileOffs = GetMaxFileOffset32(ha, pBlockTable, pHeader->dwBlockTableSize); + dwMaxFileOffs = GetMaxFileOffset32(ha); // Put all blocks to a sort table for(pBlock = pBlockTable; pBlock < pBlockTableEnd; pBlock++) @@ -2751,7 +2749,7 @@ int RebuildFileTable(TMPQArchive * ha, DWORD dwNewHashTableSize, DWORD dwNewMaxF } // Move the file entry by one - *pFileEntry++; + pFileEntry++; } } diff --git a/src/SBaseSubTypes.cpp b/src/SBaseSubTypes.cpp index 0aae9f5..288495f 100644 --- a/src/SBaseSubTypes.cpp +++ b/src/SBaseSubTypes.cpp @@ -158,7 +158,6 @@ int ConvertSqpHeaderToFormat4( void * LoadSqpTable(TMPQArchive * ha, DWORD dwByteOffset, DWORD cbTableSize, DWORD dwKey) { - TMPQHeader * pHeader = ha->pHeader; ULONGLONG ByteOffset; LPBYTE pbSqpTable; diff --git a/src/SFileGetFileInfo.cpp b/src/SFileGetFileInfo.cpp index a8083dc..07b7722 100644 --- a/src/SFileGetFileInfo.cpp +++ b/src/SFileGetFileInfo.cpp @@ -891,6 +891,9 @@ bool WINAPI SFileFreeFileInfo(void * pvFileInfo, SFileInfoClass InfoClass) case SFileMpqBetTable: FreeBetTable((TMPQBetTable *)pvFileInfo); return true; + + default: + break; } SetLastError(ERROR_INVALID_PARAMETER); diff --git a/src/SFileReadFile.cpp b/src/SFileReadFile.cpp index cfc8d2a..ff4783c 100644 --- a/src/SFileReadFile.cpp +++ b/src/SFileReadFile.cpp @@ -827,10 +827,8 @@ DWORD WINAPI SFileSetFilePointer(HANDLE hFile, LONG lFilePos, LONG * plFilePosHi MoveOffset = MAKE_OFFSET64(dwFilePosHi, lFilePos); // Now calculate the new file pointer - // Do not allow the file pointer to go before the begin of the file - FilePosition += MoveOffset; - if(FilePosition < 0) - FilePosition = 0; + // Do not allow the file pointer to overflow + FilePosition = ((FilePosition + MoveOffset) > FilePosition) ? (FilePosition + MoveOffset) : 0; // Now apply the file pointer to the file if(hf->pStream != NULL) diff --git a/test/TLogHelper.cpp b/test/TLogHelper.cpp index 127ce77..8bfb5fd 100644 --- a/test/TLogHelper.cpp +++ b/test/TLogHelper.cpp @@ -57,11 +57,11 @@ class TLogHelper // String replacements for format strings #ifdef _MSC_VER -#define I64u_t _T("%I64u"); -#define I64u_a "%I64u"; +#define I64u_t _T("%I64u") +#define I64u_a "%I64u" #else -#define I64u_t "%llu"; -#define I64u_a "%llu"; +#define I64u_t "%llu" +#define I64u_a "%llu" #endif //----------------------------------------------------------------------------- diff --git a/test/Test.cpp b/test/Test.cpp index eee67d5..061d432 100644 --- a/test/Test.cpp +++ b/test/Test.cpp @@ -345,7 +345,7 @@ static int InitializeMpqDirectory(char * argv[], int argc) cchMpqDirectory = strlen(szMpqDirectory); // Cut trailing slashes and/or backslashes - while(cchMpqDirectory > 0 && szMpqDirectory[cchMpqDirectory - 1] == '/' || szMpqDirectory[cchMpqDirectory - 1] == '\\') + while((cchMpqDirectory > 0) && (szMpqDirectory[cchMpqDirectory - 1] == '/' || szMpqDirectory[cchMpqDirectory - 1] == '\\')) cchMpqDirectory--; szMpqDirectory[cchMpqDirectory] = 0; @@ -714,7 +714,7 @@ static void WINAPI CompactCallback(void * pvUserData, DWORD dwWork, ULONGLONG By if(pLogger != NULL) pLogger->PrintProgress("%s (%I64u of %I64u) ...", szWork, BytesDone, TotalBytes); else - printf("%s (%I64u of %I64u) ... \r", szWork, (DWORD)BytesDone, (DWORD)TotalBytes); + printf("%s (" I64u_a " of " I64u_a ") ... \r", szWork, (DWORD)BytesDone, (DWORD)TotalBytes); } } @@ -2221,7 +2221,7 @@ static int TestCreateArchive_FileFlagTest(const char * szPlainName) dwMaxFileCount = SFileGetMaxFileCount(hMpq); for(i = 0; AddFlags[i] != 0xFFFFFFFF; i++) { - sprintf(szArchivedName, "FileTest_%02u.exe", i); + sprintf(szArchivedName, "FileTest_%02u.exe", (unsigned int)i); nError = AddLocalFileToMpq(&Logger, hMpq, szArchivedName, szFileName1, AddFlags[i], 0); if(nError != ERROR_SUCCESS) break; @@ -2355,7 +2355,7 @@ static int TestCreateArchive_CompressionsTest(const char * szPlainName) DWORD dwCmprCount = sizeof(Compressions) / sizeof(DWORD); DWORD dwAddedFiles = 0; DWORD dwFoundFiles = 0; - size_t i; + DWORD i; int nError; // Create paths for local file to be added |