dpnet: Correctly initialize the DPN_SP_CAPS structure.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alistair Leslie-Hughes 2016-11-02 09:13:24 +00:00 committed by Alexandre Julliard
parent 20b989ef86
commit 7fb80b9029
3 changed files with 3 additions and 0 deletions

View File

@ -544,6 +544,7 @@ static const IDirectPlay8PeerVtbl DirectPlay8Peer_Vtbl =
void init_dpn_sp_caps(DPN_SP_CAPS *dpnspcaps)
{
dpnspcaps->dwSize = sizeof(DPN_SP_CAPS);
dpnspcaps->dwFlags = DPNSPCAPS_SUPPORTSDPNSRV | DPNSPCAPS_SUPPORTSBROADCAST |
DPNSPCAPS_SUPPORTSALLADAPTERS | DPNSPCAPS_SUPPORTSTHREADPOOL;
dpnspcaps->dwNumThreads = 3;

View File

@ -197,6 +197,7 @@ static void test_get_sp_caps(void)
hr = IDirectPlay8Client_GetSPCaps(client, &CLSID_DP8SP_TCPIP, &caps, 0);
ok(hr == DPN_OK, "GetSPCaps failed with %x\n", hr);
ok(caps.dwSize == sizeof(DPN_SP_CAPS), "got %d\n", caps.dwSize);
ok((caps.dwFlags &
(DPNSPCAPS_SUPPORTSDPNSRV | DPNSPCAPS_SUPPORTSBROADCAST | DPNSPCAPS_SUPPORTSALLADAPTERS)) ==
(DPNSPCAPS_SUPPORTSDPNSRV | DPNSPCAPS_SUPPORTSBROADCAST | DPNSPCAPS_SUPPORTSALLADAPTERS),

View File

@ -198,6 +198,7 @@ static void test_get_sp_caps(void)
hr = IDirectPlay8Peer_GetSPCaps(peer, &CLSID_DP8SP_TCPIP, &caps, 0);
ok(hr == DPN_OK, "GetSPCaps failed with %x\n", hr);
ok(caps.dwSize == sizeof(DPN_SP_CAPS), "got %d\n", caps.dwSize);
ok((caps.dwFlags &
(DPNSPCAPS_SUPPORTSDPNSRV | DPNSPCAPS_SUPPORTSBROADCAST | DPNSPCAPS_SUPPORTSALLADAPTERS)) ==
(DPNSPCAPS_SUPPORTSDPNSRV | DPNSPCAPS_SUPPORTSBROADCAST | DPNSPCAPS_SUPPORTSALLADAPTERS),