Michael Stefaniuc : dplayx: Get rid of the IDirectPlayXImpl to IDirectPlayImpl casts.

Alexandre Julliard julliard at winehq.org
Thu Apr 4 13:54:15 CDT 2013


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

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Fri Mar 29 17:09:40 2013 +0100

dplayx: Get rid of the IDirectPlayXImpl to IDirectPlayImpl casts.

---

 dlls/dplayx/dplay.c |   11 +++--------
 1 files changed, 3 insertions(+), 8 deletions(-)

diff --git a/dlls/dplayx/dplay.c b/dlls/dplayx/dplay.c
index edcb20f..7d2beb3 100644
--- a/dlls/dplayx/dplay.c
+++ b/dlls/dplayx/dplay.c
@@ -1482,7 +1482,7 @@ static HRESULT DP_IF_DestroyGroup
     return DPERR_INVALIDPLAYER; /* yes player */
   }
 
-  context.This    = (IDirectPlay3Impl*)This;
+  context.This    = This;
   context.bAnsi   = bAnsi;
   context.idGroup = idGroup;
 
@@ -2919,15 +2919,10 @@ static HRESULT DP_IF_CreateGroupInGroup
   }
 
   /* Verify that the specified parent is valid */
-  if( ( lpGParentData = DP_FindAnyGroup( (IDirectPlay2AImpl*)This,
-                                         idParentGroup ) ) == NULL
-    )
-  {
+  if( ( lpGParentData = DP_FindAnyGroup(This, idParentGroup ) ) == NULL )
     return DPERR_INVALIDGROUP;
-  }
 
-  lpGData = DP_CreateGroup( (IDirectPlay2AImpl*)This, lpidGroup, lpGroupName,
-                            dwFlags, idParentGroup, bAnsi );
+  lpGData = DP_CreateGroup(This, lpidGroup, lpGroupName, dwFlags, idParentGroup, bAnsi );
 
   if( lpGData == NULL )
   {




More information about the wine-cvs mailing list