Michael Stefaniuc : dinput8: Remove superfluous pointer casts.

Alexandre Julliard julliard at winehq.org
Fri Jan 23 10:06:53 CST 2009


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

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Fri Jan 23 10:36:48 2009 +0100

dinput8: Remove superfluous pointer casts.

---

 dlls/dinput8/dinput8_main.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/dinput8/dinput8_main.c b/dlls/dinput8/dinput8_main.c
index 4902903..c855caf 100644
--- a/dlls/dinput8/dinput8_main.c
+++ b/dlls/dinput8/dinput8_main.c
@@ -74,12 +74,12 @@ HRESULT WINAPI DirectInput8Create(HINSTANCE hinst, DWORD dwVersion, REFIID riid,
 
     /* When aggregation is used (punkOuter!=NULL) the application needs to manually call Initialize. */
     if(punkOuter == NULL && IsEqualGUID(&IID_IDirectInput8A, riid)) {
-        LPDIRECTINPUTA DI = (LPDIRECTINPUTA)*ppDI;
+        LPDIRECTINPUTA DI = *ppDI;
         IDirectInput8_Initialize(DI, hinst, dwVersion);
     }
 
     if(punkOuter == NULL && IsEqualGUID(&IID_IDirectInput8W, riid)) {
-        LPDIRECTINPUTW DI = (LPDIRECTINPUTW)*ppDI;
+        LPDIRECTINPUTW DI = *ppDI;
         IDirectInput8_Initialize(DI, hinst, dwVersion);
     }
 
@@ -159,7 +159,7 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
 {
     TRACE("(%s,%s,%p)\n", debugstr_guid(rclsid), debugstr_guid(riid), ppv);
     if ( IsEqualCLSID( &IID_IClassFactory, riid ) ) {
-        *ppv = (LPVOID)&DINPUT8_CF;
+        *ppv = &DINPUT8_CF;
         IClassFactory_AddRef((IClassFactory*)*ppv);
         return S_OK;
     }




More information about the wine-cvs mailing list