dplayx: Check for null pointer dereference in DP_FindPlayer.

oldstable
Alessandro Pignotti 2007-03-21 12:14:47 +01:00 committed by Alexandre Julliard
parent f143010038
commit d8b24e3664
1 changed files with 3 additions and 0 deletions

View File

@ -1280,6 +1280,9 @@ static lpPlayerList DP_FindPlayer( IDirectPlay2AImpl* This, DPID dpid )
TRACE( "(%p)->(0x%08x)\n", This, dpid );
if(This->dp2->lpSysGroup == NULL)
return NULL;
DPQ_FIND_ENTRY( This->dp2->lpSysGroup->players, players, lpPData->dpid, ==, dpid, lpPlayers );
return lpPlayers;