Michael Stefaniuc : kernel32:
Remove superfluous casts of void pointers to other pointer types.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Jun 27 09:11:26 CDT 2007
Module: wine
Branch: master
Commit: 7596e3dd91f9f7c327ad5c538002ce4304c14b0d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7596e3dd91f9f7c327ad5c538002ce4304c14b0d
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Wed Jun 27 00:12:59 2007 +0200
kernel32: Remove superfluous casts of void pointers to other pointer types.
---
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;
More information about the wine-cvs
mailing list