Michael Stefaniuc : ole32:
Remove superfluous casts of void pointers to other pointer types.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Jun 27 09:11:25 CDT 2007
Module: wine
Branch: master
Commit: d28c3ca60cb4f28a7aaed33d19cc63ff7380544c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d28c3ca60cb4f28a7aaed33d19cc63ff7380544c
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Wed Jun 27 00:12:36 2007 +0200
ole32: Remove superfluous casts of void pointers to other pointer types.
---
dlls/ole32/dictionary.c | 4 ++--
dlls/ole32/tests/marshal.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/ole32/dictionary.c b/dlls/ole32/dictionary.c
index 6e11478..593a4ff 100644
--- a/dlls/ole32/dictionary.c
+++ b/dlls/ole32/dictionary.c
@@ -126,8 +126,8 @@ void dictionary_insert(struct dictionary *d, const void *k, const void *v)
}
else
{
- struct dictionary_entry *elem = (struct dictionary_entry *)
- HeapAlloc(GetProcessHeap(), 0, sizeof(struct dictionary_entry));
+ struct dictionary_entry *elem = HeapAlloc(GetProcessHeap(), 0,
+ sizeof(struct dictionary_entry));
if (!elem)
return;
diff --git a/dlls/ole32/tests/marshal.c b/dlls/ole32/tests/marshal.c
index b089913..ba7793a 100644
--- a/dlls/ole32/tests/marshal.c
+++ b/dlls/ole32/tests/marshal.c
@@ -1615,7 +1615,7 @@ static void test_proxybuffer(REFIID riid)
LPVOID lpvtbl;
ULONG refs;
CLSID clsid;
- HeapUnknown *pUnkOuter = (HeapUnknown *)HeapAlloc(GetProcessHeap(), 0, sizeof(*pUnkOuter));
+ HeapUnknown *pUnkOuter = HeapAlloc(GetProcessHeap(), 0, sizeof(*pUnkOuter));
pUnkOuter->lpVtbl = &HeapUnknown_Vtbl;
pUnkOuter->refs = 1;
More information about the wine-cvs
mailing list