ntdll/tests: Cast-qual warning fix
Andrew Talbot
Andrew.Talbot at talbotville.com
Tue Dec 12 15:45:42 CST 2006
Changelog:
ntdll/tests: Cast-qual warning fix.
diff -urN a/dlls/ntdll/rtl.c b/dlls/ntdll/rtl.c
--- a/dlls/ntdll/rtl.c 2006-10-20 18:08:04.000000000 +0100
+++ b/dlls/ntdll/rtl.c 2006-12-12 20:34:47.000000000 +0000
@@ -583,7 +583,7 @@
* RETURNS
* The cumulative CRC32 of dwInitial and iLen bytes of the pData block.
*/
-DWORD WINAPI RtlComputeCrc32(DWORD dwInitial, PBYTE pData, INT iLen)
+DWORD WINAPI RtlComputeCrc32(DWORD dwInitial, const BYTE *pData, INT iLen)
{
DWORD crc = ~dwInitial;
diff -urN a/dlls/ntdll/tests/rtl.c b/dlls/ntdll/tests/rtl.c
--- a/dlls/ntdll/tests/rtl.c 2006-12-07 17:41:25.000000000 +0000
+++ b/dlls/ntdll/tests/rtl.c 2006-12-12 20:34:47.000000000 +0000
@@ -844,7 +844,7 @@
if (!pRtlComputeCrc32)
return;
- crc = pRtlComputeCrc32(crc, (LPBYTE)src, LEN);
+ crc = pRtlComputeCrc32(crc, (const BYTE *)src, LEN);
ok(crc == 0x40861dc2,"Expected 0x40861dc2, got %8x\n", crc);
}
diff -urN a/include/winternl.h b/include/winternl.h
--- a/include/winternl.h 2006-11-08 17:28:32.000000000 +0000
+++ b/include/winternl.h 2006-12-12 20:34:19.000000000 +0000
@@ -1986,7 +1986,7 @@
ULONG WINAPI RtlCompactHeap(HANDLE,ULONG);
LONG WINAPI RtlCompareString(const STRING*,const STRING*,BOOLEAN);
LONG WINAPI RtlCompareUnicodeString(const UNICODE_STRING*,const UNICODE_STRING*,BOOLEAN);
-DWORD WINAPI RtlComputeCrc32(DWORD,PBYTE,INT);
+DWORD WINAPI RtlComputeCrc32(DWORD,const BYTE*,INT);
NTSTATUS WINAPI RtlConvertSidToUnicodeString(PUNICODE_STRING,PSID,BOOLEAN);
LONGLONG WINAPI RtlConvertLongToLargeInteger(LONG);
ULONGLONG WINAPI RtlConvertUlongToLargeInteger(ULONG);
More information about the wine-patches
mailing list