Commit 9d69d533 authored by Alessandro Pignotti's avatar Alessandro Pignotti Committed by Alexandre Julliard

dplayx: DirectPlay should keep track of the user count.

parent 7cc0b970
...@@ -1227,6 +1227,9 @@ lpPlayerData DP_CreatePlayer( IDirectPlay2Impl* This, LPDPID lpid, ...@@ -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 ...@@ -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 )
......
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