Michael Stefaniuc : msi: Remove casts of void pointers.

Alexandre Julliard julliard at winehq.org
Tue Nov 25 07:21:24 CST 2008


Module: wine
Branch: master
Commit: b1a54bf7a38fbe82b53532207d511581ba63f74e
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=b1a54bf7a38fbe82b53532207d511581ba63f74e

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Tue Nov 25 10:12:42 2008 +0100

msi: Remove casts of void pointers.

---

 dlls/msi/automation.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/dlls/msi/automation.c b/dlls/msi/automation.c
index 11f0a09..834e406 100644
--- a/dlls/msi/automation.c
+++ b/dlls/msi/automation.c
@@ -618,7 +618,7 @@ static ULONG WINAPI ListEnumerator_Release(IEnumVARIANT* iface)
 static HRESULT WINAPI ListEnumerator_Next(IEnumVARIANT* iface, ULONG celt, VARIANT *rgVar, ULONG *pCeltFetched)
 {
     ListEnumerator *This = (ListEnumerator *)iface;
-    ListData *data = (ListData *)private_data(This->pObj);
+    ListData *data = private_data(This->pObj);
     ULONG idx, local;
 
     TRACE("(%p,%uld,%p,%p)\n", iface, celt, rgVar, pCeltFetched);
@@ -645,7 +645,7 @@ static HRESULT WINAPI ListEnumerator_Next(IEnumVARIANT* iface, ULONG celt, VARIA
 static HRESULT WINAPI ListEnumerator_Skip(IEnumVARIANT* iface, ULONG celt)
 {
     ListEnumerator *This = (ListEnumerator *)iface;
-    ListData *data = (ListData *)private_data(This->pObj);
+    ListData *data = private_data(This->pObj);
 
     TRACE("(%p,%uld)\n", iface, celt);
 
@@ -988,7 +988,7 @@ static HRESULT WINAPI ListImpl_Invoke(
         EXCEPINFO* pExcepInfo,
         UINT* puArgErr)
 {
-    ListData *data = (ListData *)private_data(This);
+    ListData *data = private_data(This);
     HRESULT hr;
     VARIANTARG varg0;
     IUnknown *pUnk = NULL;
@@ -1868,7 +1868,7 @@ static HRESULT WINAPI InstallerImpl_Invoke(
                     V_DISPATCH(pVarResult) = pDispatch;
 
                     /* Save product strings */
-                    ldata = (ListData *)private_data((AutomationObject *)pDispatch);
+                    ldata = private_data((AutomationObject *)pDispatch);
                     if (!(ldata->pVars = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(VARIANT)*idx)))
                         ERR("Out of memory\n");
                     else
@@ -1914,7 +1914,7 @@ static HRESULT WINAPI InstallerImpl_Invoke(
                     V_DISPATCH(pVarResult) = pDispatch;
 
                     /* Save product strings */
-                    ldata = (ListData *)private_data((AutomationObject *)pDispatch);
+                    ldata = private_data((AutomationObject *)pDispatch);
                     if (!(ldata->pVars = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(VARIANT)*idx)))
                         ERR("Out of memory\n");
                     else




More information about the wine-cvs mailing list