Commit 7fb80b90 authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Alexandre Julliard

dpnet: Correctly initialize the DPN_SP_CAPS structure.

parent 20b989ef
......@@ -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;
......
......@@ -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),
......
......@@ -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),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment