From: Anton Baskanov baskanov@gmail.com
--- dlls/dplayx/dplay.c | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/dlls/dplayx/dplay.c b/dlls/dplayx/dplay.c index ba40d742bc2..280cefb5482 100644 --- a/dlls/dplayx/dplay.c +++ b/dlls/dplayx/dplay.c @@ -1739,6 +1739,11 @@ static HRESULT DP_IF_CreatePlayer( IDirectPlayImpl *This, void *lpMsgHdr, DPID * return DPERR_UNINITIALIZED; }
+ if( !This->dp2->bConnectionOpen ) + { + return DPERR_INVALIDPARAM; + } + if( dwFlags == 0 ) { dwFlags = DPPLAYER_SPECTATOR;