diff options
author | Ladislav Zezula <ladislav.zezula@avast.com> | 2021-05-17 15:19:36 +0200 |
---|---|---|
committer | Ladislav Zezula <ladislav.zezula@avast.com> | 2021-05-17 15:19:36 +0200 |
commit | 26b2f0e8b6e711aa05b67bf2466a715a063b2517 (patch) | |
tree | 75f88398ff1014d6e5cef83524dac00332e680f2 | |
parent | b3c4fa29a1b1773f8dba1d7b1b341fa81c659b3d (diff) |
PDWORD -> LPDWORD
-rw-r--r-- | src/SBaseCommon.cpp | 6 | ||||
-rw-r--r-- | test/StormTest.cpp | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/SBaseCommon.cpp b/src/SBaseCommon.cpp index b81d492..a1aa78e 100644 --- a/src/SBaseCommon.cpp +++ b/src/SBaseCommon.cpp @@ -414,7 +414,7 @@ DWORD GetDefaultSpecialFileFlags(DWORD dwFileSize, USHORT wFormatVersion) //-----------------------------------------------------------------------------
// Encrypting/Decrypting MPQ data block
-static DWORD EncryptUInt32Unaligned(PDWORD DataPointer, DWORD i, DWORD dwXorKey)
+static DWORD EncryptUInt32Unaligned(LPDWORD DataPointer, DWORD i, DWORD dwXorKey)
{
LPBYTE pbDataPointer = (LPBYTE)(DataPointer + i);
LPBYTE pbXorKey = (LPBYTE)(&dwXorKey);
@@ -474,7 +474,7 @@ void EncryptMpqBlock(void * pvDataBlock, DWORD dwLength, DWORD dwKey1) }
}
-static DWORD DecryptUInt32Unaligned(PDWORD DataPointer, DWORD i, DWORD dwXorKey)
+static DWORD DecryptUInt32Unaligned(LPDWORD DataPointer, DWORD i, DWORD dwXorKey)
{
LPBYTE pbDataPointer = (LPBYTE)(DataPointer + i);
LPBYTE pbXorKey = (LPBYTE)(&dwXorKey);
@@ -494,7 +494,7 @@ static DWORD DecryptUInt32Unaligned(PDWORD DataPointer, DWORD i, DWORD dwXorKey) void DecryptMpqBlock(void * pvDataBlock, DWORD dwLength, DWORD dwKey1)
{
- PDWORD DataPointer = (PDWORD)pvDataBlock;
+ LPDWORD DataPointer = (LPDWORD)pvDataBlock;
DWORD dwValue32;
DWORD dwKey2 = 0xEEEEEEEE;
diff --git a/test/StormTest.cpp b/test/StormTest.cpp index ab003e4..5b32dc1 100644 --- a/test/StormTest.cpp +++ b/test/StormTest.cpp @@ -4285,13 +4285,13 @@ int _tmain(int argc, TCHAR * argv[]) //
// Tests on a local listfile
//
-
+ /*
if(dwErrCode == ERROR_SUCCESS)
{
TestOnLocalListFile(_T("FLAT-MAP:ListFile_Blizzard.txt"));
dwErrCode = TestOnLocalListFile(_T("ListFile_Blizzard.txt"));
}
-
+ */
//
// Open all files from the command line
//
|