Commit d8b24e36 authored by Alessandro Pignotti's avatar Alessandro Pignotti Committed by Alexandre Julliard

dplayx: Check for null pointer dereference in DP_FindPlayer.

parent f1430100
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment