Commit 7596e3dd authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

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

parent ab7e3364
......@@ -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());
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment