From: Anton Baskanov <baskanov(a)gmail.com> --- dlls/dplayx/dplay.c | 1 + dlls/dplayx/dplayx_messages.c | 4 ++-- dlls/dplayx/dplayx_messages.h | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/dlls/dplayx/dplay.c b/dlls/dplayx/dplay.c index 3ff5c0b4f16..e09a5a76a11 100644 --- a/dlls/dplayx/dplay.c +++ b/dlls/dplayx/dplay.c @@ -383,6 +383,7 @@ HRESULT DP_HandleMessage( IDirectPlayImpl *This, const void *lpcMessageBody, case DPMSGCMD_GETNAMETABLEREPLY: case DPMSGCMD_NEWPLAYERIDREPLY: + case DPMSGCMD_SUPERENUMPLAYERSREPLY: DP_MSG_ReplyReceived( This, wCommandId, lpcMessageBody, dwMessageBodySize ); break; diff --git a/dlls/dplayx/dplayx_messages.c b/dlls/dplayx/dplayx_messages.c index 1077d99796a..4e385d5a0ee 100644 --- a/dlls/dplayx/dplayx_messages.c +++ b/dlls/dplayx/dplayx_messages.c @@ -369,7 +369,7 @@ HRESULT DP_MSG_ForwardPlayerCreation( IDirectPlayImpl *This, DPID dpidServer ) /* Send the message */ { - WORD replyCommand = DPMSGCMD_GETNAMETABLEREPLY; + WORD replyCommands[] = { DPMSGCMD_GETNAMETABLEREPLY, DPMSGCMD_SUPERENUMPLAYERSREPLY }; DPSP_SENDDATA data; data.dwFlags = DPSEND_GUARANTEED; @@ -384,7 +384,7 @@ HRESULT DP_MSG_ForwardPlayerCreation( IDirectPlayImpl *This, DPID dpidServer ) hr = DP_MSG_ExpectReply( This, &data, DPMSG_WAIT_60_SECS, - &replyCommand, 1, + replyCommands, ARRAYSIZE( replyCommands ), &lpMsg, &dwMsgSize ); } diff --git a/dlls/dplayx/dplayx_messages.h b/dlls/dplayx/dplayx_messages.h index c8758d3ddb1..6c2a210cb1d 100644 --- a/dlls/dplayx/dplayx_messages.h +++ b/dlls/dplayx/dplayx_messages.h @@ -72,6 +72,8 @@ void DP_MSG_ToSelf( IDirectPlayImpl *This, DPID dpidSelf ); #define DPMSGCMD_FORWARDADDPLAYERNACK 36 +#define DPMSGCMD_SUPERENUMPLAYERSREPLY 41 + #define DPMSGCMD_JUSTENVELOPE 1000 #define DPMSGCMD_JUSTENVELOPEREPLY 1001 -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/6558