15 Oct
2024
15 Oct
'24
12:42 a.m.
From: Anton Baskanov <baskanov(a)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; -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/6670