Andrew Talbot : ntdll/tests: Cast-qual warning fix.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Dec 13 10:03:48 CST 2006


Module: wine
Branch: master
Commit: 9cf1579aadbf50e5e788fb4b177f9e0ebfe55f12
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=9cf1579aadbf50e5e788fb4b177f9e0ebfe55f12

Author: Andrew Talbot <Andrew.Talbot at talbotville.com>
Date:   Tue Dec 12 21:45:42 2006 +0000

ntdll/tests: Cast-qual warning fix.

---

 dlls/ntdll/rtl.c       |    2 +-
 dlls/ntdll/tests/rtl.c |    2 +-
 include/winternl.h     |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/ntdll/rtl.c b/dlls/ntdll/rtl.c
index 21866ef..3ff5cb0 100644
--- a/dlls/ntdll/rtl.c
+++ b/dlls/ntdll/rtl.c
@@ -583,7 +583,7 @@ VOID WINAPI RtlFillMemoryUlong(ULONG* lp
  * 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 --git a/dlls/ntdll/tests/rtl.c b/dlls/ntdll/tests/rtl.c
index 8d7f227..8a5611c 100644
--- a/dlls/ntdll/tests/rtl.c
+++ b/dlls/ntdll/tests/rtl.c
@@ -844,7 +844,7 @@ static void test_RtlComputeCrc32(void)
   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 --git a/include/winternl.h b/include/winternl.h
index 9509176..19b2ac9 100644
--- a/include/winternl.h
+++ b/include/winternl.h
@@ -1986,7 +1986,7 @@ PDEBUG_BUFFER WINAPI RtlCreateQueryDebug
 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-cvs mailing list