Commit ab7e3364 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

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

parent d28c3ca6
...@@ -579,7 +579,7 @@ static HRESULT register_current_module_typelib(void) ...@@ -579,7 +579,7 @@ static HRESULT register_current_module_typelib(void)
static IWidget *Widget_Create(void) static IWidget *Widget_Create(void)
{ {
Widget *This = (Widget *)HeapAlloc(GetProcessHeap(), 0, sizeof(*This)); Widget *This = HeapAlloc(GetProcessHeap(), 0, sizeof(*This));
HRESULT hr; HRESULT hr;
ITypeLib *pTypeLib; ITypeLib *pTypeLib;
...@@ -698,7 +698,7 @@ static IKindaEnumWidget *KindaEnumWidget_Create(void) ...@@ -698,7 +698,7 @@ static IKindaEnumWidget *KindaEnumWidget_Create(void)
{ {
KindaEnum *This; KindaEnum *This;
This = (KindaEnum *)HeapAlloc(GetProcessHeap(), 0, sizeof(*This)); This = HeapAlloc(GetProcessHeap(), 0, sizeof(*This));
if (!This) return NULL; if (!This) return NULL;
This->lpVtbl = &KindaEnumWidget_VTable; This->lpVtbl = &KindaEnumWidget_VTable;
This->refs = 1; This->refs = 1;
......
...@@ -192,7 +192,7 @@ static void test_marshal_LPSAFEARRAY(void) ...@@ -192,7 +192,7 @@ static void test_marshal_LPSAFEARRAY(void)
ok(size == 68, "size should be 68 bytes, not %ld\n", size); ok(size == 68, "size should be 68 bytes, not %ld\n", size);
size = LPSAFEARRAY_UserSize(&umcb.Flags, 0, &lpsa); size = LPSAFEARRAY_UserSize(&umcb.Flags, 0, &lpsa);
ok(size == 64, "size should be 64 bytes, not %ld\n", size); ok(size == 64, "size should be 64 bytes, not %ld\n", size);
buffer = (unsigned char *)HeapAlloc(GetProcessHeap(), 0, size); buffer = HeapAlloc(GetProcessHeap(), 0, size);
LPSAFEARRAY_UserMarshal(&umcb.Flags, buffer, &lpsa); LPSAFEARRAY_UserMarshal(&umcb.Flags, buffer, &lpsa);
check_safearray(buffer, lpsa); check_safearray(buffer, lpsa);
...@@ -215,7 +215,7 @@ static void test_marshal_LPSAFEARRAY(void) ...@@ -215,7 +215,7 @@ static void test_marshal_LPSAFEARRAY(void)
size = LPSAFEARRAY_UserSize(&umcb.Flags, 0, &lpsa); size = LPSAFEARRAY_UserSize(&umcb.Flags, 0, &lpsa);
ok(size == 4, "size should be 4 bytes, not %ld\n", size); ok(size == 4, "size should be 4 bytes, not %ld\n", size);
buffer = (unsigned char *)HeapAlloc(GetProcessHeap(), 0, size); buffer = HeapAlloc(GetProcessHeap(), 0, size);
LPSAFEARRAY_UserMarshal(&umcb.Flags, buffer, &lpsa); LPSAFEARRAY_UserMarshal(&umcb.Flags, buffer, &lpsa);
check_safearray(buffer, lpsa); check_safearray(buffer, lpsa);
...@@ -238,7 +238,7 @@ static void test_marshal_LPSAFEARRAY(void) ...@@ -238,7 +238,7 @@ static void test_marshal_LPSAFEARRAY(void)
ok(size == 128, "size should be 128 bytes, not %ld\n", size); ok(size == 128, "size should be 128 bytes, not %ld\n", size);
size = LPSAFEARRAY_UserSize(&umcb.Flags, 0, &lpsa); size = LPSAFEARRAY_UserSize(&umcb.Flags, 0, &lpsa);
ok(size == 128, "size should be 128 bytes, not %ld\n", size); ok(size == 128, "size should be 128 bytes, not %ld\n", size);
buffer = (unsigned char *)HeapAlloc(GetProcessHeap(), 0, size); buffer = HeapAlloc(GetProcessHeap(), 0, size);
LPSAFEARRAY_UserMarshal(&umcb.Flags, buffer, &lpsa); LPSAFEARRAY_UserMarshal(&umcb.Flags, buffer, &lpsa);
check_safearray(buffer, lpsa); check_safearray(buffer, lpsa);
...@@ -260,7 +260,7 @@ static void test_marshal_LPSAFEARRAY(void) ...@@ -260,7 +260,7 @@ static void test_marshal_LPSAFEARRAY(void)
size = LPSAFEARRAY_UserSize(&umcb.Flags, 0, &lpsa); size = LPSAFEARRAY_UserSize(&umcb.Flags, 0, &lpsa);
ok(size == 432, "size %ld\n", size); ok(size == 432, "size %ld\n", size);
buffer = (unsigned char *)HeapAlloc(GetProcessHeap(), 0, size); buffer = HeapAlloc(GetProcessHeap(), 0, size);
LPSAFEARRAY_UserMarshal(&umcb.Flags, buffer, &lpsa); LPSAFEARRAY_UserMarshal(&umcb.Flags, buffer, &lpsa);
check_safearray(buffer, lpsa); check_safearray(buffer, lpsa);
HeapFree(GetProcessHeap(), 0, buffer); HeapFree(GetProcessHeap(), 0, buffer);
...@@ -283,7 +283,7 @@ static void test_marshal_LPSAFEARRAY(void) ...@@ -283,7 +283,7 @@ static void test_marshal_LPSAFEARRAY(void)
size = LPSAFEARRAY_UserSize(&umcb.Flags, 0, &lpsa); size = LPSAFEARRAY_UserSize(&umcb.Flags, 0, &lpsa);
todo_wine todo_wine
ok(size == 1388, "size %ld\n", size); ok(size == 1388, "size %ld\n", size);
buffer = (unsigned char *)HeapAlloc(GetProcessHeap(), 0, size); buffer = HeapAlloc(GetProcessHeap(), 0, size);
LPSAFEARRAY_UserMarshal(&umcb.Flags, buffer, &lpsa); LPSAFEARRAY_UserMarshal(&umcb.Flags, buffer, &lpsa);
check_safearray(buffer, lpsa); check_safearray(buffer, lpsa);
HeapFree(GetProcessHeap(), 0, buffer); HeapFree(GetProcessHeap(), 0, buffer);
......
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