dinput8: Remove superfluous pointer casts.

Michael Stefaniuc mstefani at redhat.de
Fri Jan 23 03:36:48 CST 2009


---
 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;
     }
-- 
1.6.0.6
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20090123/cbe3942f/attachment.pgp 


More information about the wine-patches mailing list