dplayx: DirectPlay should keep track of the user count.

This commit is contained in:
Alessandro Pignotti 2007-03-15 17:10:25 +01:00 committed by Alexandre Julliard
parent 7cc0b970b6
commit 9d69d53335
1 changed files with 6 additions and 2 deletions

View File

@ -1227,6 +1227,9 @@ lpPlayerData DP_CreatePlayer( IDirectPlay2Impl* This, LPDPID lpid,
TRACE( "Created player id 0x%08x\n", *lpid ); TRACE( "Created player id 0x%08x\n", *lpid );
if( ~dwFlags & DPLAYI_PLAYER_SYSPLAYER )
This->dp2->lpSessionDesc->dwCurrentPlayers++;
return lpPData; return lpPData;
} }
@ -1478,8 +1481,9 @@ static HRESULT WINAPI DP_IF_CreatePlayer
*/ */
} }
/* FIXME: Should we be storing these dwFlags or the creation ones? */ /* We pass creation flags, so we can distinguish sysplayers and not count them in the current
lpPData = DP_CreatePlayer( This, lpidPlayer, lpPlayerName, dwFlags, player total */
lpPData = DP_CreatePlayer( This, lpidPlayer, lpPlayerName, dwCreateFlags,
hEvent, bAnsi ); hEvent, bAnsi );
if( lpPData == NULL ) if( lpPData == NULL )