Andrew Talbot : dplayx: Remove unneeded casts.

Alexandre Julliard julliard at winehq.org
Tue Dec 11 11:37:20 CST 2007


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

Author: Andrew Talbot <andrew.talbot at talbotville.com>
Date:   Mon Dec 10 22:03:28 2007 +0000

dplayx: Remove unneeded casts.

---

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

diff --git a/dlls/dplayx/dplay.c b/dlls/dplayx/dplay.c
index f421fe7..e3c3562 100644
--- a/dlls/dplayx/dplay.c
+++ b/dlls/dplayx/dplay.c
@@ -1918,7 +1918,7 @@ cbDeletePlayerFromAllGroups(
     DP_IF_EnumGroupsInGroup( (IDirectPlay3Impl*)lpCtxt->This,
                              dpId, NULL,
                              cbDeletePlayerFromAllGroups,
-                             (LPVOID)lpContext, DPENUMGROUPS_ALL,
+                             lpContext, DPENUMGROUPS_ALL,
                              lpCtxt->bAnsi );
 
   }
@@ -3358,7 +3358,7 @@ static void DP_CopySessionDesc( LPDPSESSIONDESC2 lpSessionDest,
                 lpSessionDest->u1.lpszSessionNameA );
       lpSessionDest->u1.lpszSessionNameA = (LPSTR)lpStartOfFreeSpace;
       lpStartOfFreeSpace +=
-        lstrlenA( (LPSTR)lpSessionDest->u1.lpszSessionNameA ) + 1;
+        lstrlenA( lpSessionDest->u1.lpszSessionNameA ) + 1;
     }
 
     if( lpSessionSrc->u2.lpszPasswordA )
@@ -3367,7 +3367,7 @@ static void DP_CopySessionDesc( LPDPSESSIONDESC2 lpSessionDest,
                 lpSessionDest->u2.lpszPasswordA );
       lpSessionDest->u2.lpszPasswordA = (LPSTR)lpStartOfFreeSpace;
       lpStartOfFreeSpace +=
-        lstrlenA( (LPSTR)lpSessionDest->u2.lpszPasswordA ) + 1;
+        lstrlenA( lpSessionDest->u2.lpszPasswordA ) + 1;
     }
   }
   else /* UNICODE */
@@ -3378,7 +3378,7 @@ static void DP_CopySessionDesc( LPDPSESSIONDESC2 lpSessionDest,
                 lpSessionDest->u1.lpszSessionName );
       lpSessionDest->u1.lpszSessionName = (LPWSTR)lpStartOfFreeSpace;
       lpStartOfFreeSpace += sizeof(WCHAR) *
-        ( lstrlenW( (LPWSTR)lpSessionDest->u1.lpszSessionName ) + 1 );
+        ( lstrlenW( lpSessionDest->u1.lpszSessionName ) + 1 );
     }
 
     if( lpSessionSrc->u2.lpszPassword )
@@ -3387,7 +3387,7 @@ static void DP_CopySessionDesc( LPDPSESSIONDESC2 lpSessionDest,
                 lpSessionDest->u2.lpszPassword );
       lpSessionDest->u2.lpszPassword = (LPWSTR)lpStartOfFreeSpace;
       lpStartOfFreeSpace += sizeof(WCHAR) *
-        ( lstrlenW( (LPWSTR)lpSessionDest->u2.lpszPassword ) + 1 );
+        ( lstrlenW( lpSessionDest->u2.lpszPassword ) + 1 );
     }
   }
 }




More information about the wine-cvs mailing list