From: Anton Baskanov baskanov@gmail.com
--- dlls/dplayx/dplay.c | 12 ++++++++++++ 1 file changed, 12 insertions(+)
diff --git a/dlls/dplayx/dplay.c b/dlls/dplayx/dplay.c index 421bd6f4951..e4de33962dd 100644 --- a/dlls/dplayx/dplay.c +++ b/dlls/dplayx/dplay.c @@ -1032,6 +1032,12 @@ static HRESULT WINAPI IDirectPlay4Impl_Close( IDirectPlay4 *iface )
TRACE( "(%p)\n", This );
+ EnterCriticalSection( &This->lock ); + + This->dp2->bConnectionOpen = FALSE; + + LeaveCriticalSection( &This->lock ); + /* FIXME: Need to find a new host I assume (how?) */ /* FIXME: Need to destroy all local groups */ /* FIXME: Need to migrate all remotely visible players to the new host */ @@ -3493,6 +3499,12 @@ static HRESULT DP_SecureOpen( IDirectPlayImpl *This, const DPSESSIONDESC2 *lpsd, } }
+ EnterCriticalSection( &This->lock ); + + This->dp2->bConnectionOpen = TRUE; + + LeaveCriticalSection( &This->lock ); + return DP_OK; }