kernel32: Remove superfluous casts of void pointers to other pointer types.

Michael Stefaniuc mstefani at redhat.de
Tue Jun 26 17:12:59 CDT 2007


---
 dlls/kernel32/tests/pipe.c    |    2 +-
 dlls/kernel32/tests/virtual.c |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/kernel32/tests/pipe.c b/dlls/kernel32/tests/pipe.c
index 81159ab..1850e77 100644
--- a/dlls/kernel32/tests/pipe.c
+++ b/dlls/kernel32/tests/pipe.c
@@ -848,7 +848,7 @@ static DWORD CALLBACK named_pipe_client_func(LPVOID p)
 
         ret = GetTokenInformation(process_token, TokenPrivileges, NULL, 0, &Size);
         ok(!ret && GetLastError() == ERROR_INSUFFICIENT_BUFFER, "GetTokenInformation(TokenPrivileges) failed with %d\n", GetLastError());
-        Privileges = (TOKEN_PRIVILEGES *)HeapAlloc(GetProcessHeap(), 0, Size);
+        Privileges = HeapAlloc(GetProcessHeap(), 0, Size);
         ret = GetTokenInformation(process_token, TokenPrivileges, Privileges, Size, &Size);
         ok(ret, "GetTokenInformation(TokenPrivileges) failed with %d\n", GetLastError());
 
diff --git a/dlls/kernel32/tests/virtual.c b/dlls/kernel32/tests/virtual.c
index a033096..7727c65 100644
--- a/dlls/kernel32/tests/virtual.c
+++ b/dlls/kernel32/tests/virtual.c
@@ -81,8 +81,8 @@ static void test_VirtualAllocEx(void)
         return;
     }
 
-    src = (char *) HeapAlloc( GetProcessHeap(), 0, alloc_size );
-    dst = (char *) HeapAlloc( GetProcessHeap(), 0, alloc_size );
+    src = HeapAlloc( GetProcessHeap(), 0, alloc_size );
+    dst = HeapAlloc( GetProcessHeap(), 0, alloc_size );
     for (i = 0; i < alloc_size; i++)
         src[i] = i & 0xff;
 
-- 
1.5.0.6
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070627/f4d1443c/attachment.pgp


More information about the wine-patches mailing list