Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
7fb80b90
Commit
7fb80b90
authored
Nov 02, 2016
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Nov 03, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
>
parent
20b989ef
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
0 deletions
+3
-0
peer.c
dlls/dpnet/peer.c
+1
-0
client.c
dlls/dpnet/tests/client.c
+1
-0
peer.c
dlls/dpnet/tests/peer.c
+1
-0
No files found.
dlls/dpnet/peer.c
View file @
7fb80b90
...
...
@@ -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
;
...
...
dlls/dpnet/tests/client.c
View file @
7fb80b90
...
...
@@ -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
),
...
...
dlls/dpnet/tests/peer.c
View file @
7fb80b90
...
...
@@ -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
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment