mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
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:
parent
20b989ef86
commit
7fb80b9029
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user