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
eef69511
Commit
eef69511
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: Close resets back to an uninitialized state.
Signed-off-by:
Alistair Leslie-Hughes
<
leslie_alistair@hotmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7fb80b90
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
3 deletions
+34
-3
client.c
dlls/dpnet/client.c
+6
-3
client.c
dlls/dpnet/tests/client.c
+28
-0
No files found.
dlls/dpnet/client.c
View file @
eef69511
...
...
@@ -253,9 +253,12 @@ static HRESULT WINAPI IDirectPlay8ClientImpl_GetServerAddress(IDirectPlay8Client
static
HRESULT
WINAPI
IDirectPlay8ClientImpl_Close
(
IDirectPlay8Client
*
iface
,
const
DWORD
dwFlags
)
{
IDirectPlay8ClientImpl
*
This
=
impl_from_IDirectPlay8Client
(
iface
);
FIXME
(
"(%p):(%x): Stub
\n
"
,
This
,
dwFlags
);
return
DPN_OK
;
IDirectPlay8ClientImpl
*
This
=
impl_from_IDirectPlay8Client
(
iface
);
FIXME
(
"(%p):(%x): Stub
\n
"
,
This
,
dwFlags
);
This
->
msghandler
=
NULL
;
return
DPN_OK
;
}
static
HRESULT
WINAPI
IDirectPlay8ClientImpl_ReturnBuffer
(
IDirectPlay8Client
*
iface
,
...
...
dlls/dpnet/tests/client.c
View file @
eef69511
...
...
@@ -319,6 +319,33 @@ static void test_cleanup_dp(void)
CoUninitialize
();
}
static
void
test_close
(
void
)
{
HRESULT
hr
;
static
IDirectPlay8Client
*
client2
;
DPN_SP_CAPS
caps
;
hr
=
CoCreateInstance
(
&
CLSID_DirectPlay8Client
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IDirectPlay8Client
,
(
void
**
)
&
client2
);
ok
(
hr
==
S_OK
,
"got 0x%x
\n
"
,
hr
);
memset
(
&
caps
,
0
,
sizeof
(
DPN_SP_CAPS
));
caps
.
dwSize
=
sizeof
(
DPN_SP_CAPS
);
hr
=
IDirectPlay8Client_Initialize
(
client2
,
NULL
,
DirectPlayMessageHandler
,
0
);
ok
(
hr
==
S_OK
,
"got %x
\n
"
,
hr
);
hr
=
IDirectPlay8Client_GetSPCaps
(
client2
,
&
CLSID_DP8SP_TCPIP
,
&
caps
,
0
);
ok
(
hr
==
DPN_OK
,
"got %x
\n
"
,
hr
);
hr
=
IDirectPlay8Client_Close
(
client2
,
0
);
ok
(
hr
==
DPN_OK
,
"got %x
\n
"
,
hr
);
hr
=
IDirectPlay8Client_GetSPCaps
(
client2
,
&
CLSID_DP8SP_TCPIP
,
&
caps
,
0
);
ok
(
hr
==
DPNERR_UNINITIALIZED
,
"got %x
\n
"
,
hr
);
IDirectPlay8Client_Release
(
client2
);
}
START_TEST
(
client
)
{
if
(
!
test_init_dp
())
...
...
@@ -329,5 +356,6 @@ START_TEST(client)
test_get_sp_caps
();
test_player_info
();
test_lobbyclient
();
test_close
();
test_cleanup_dp
();
}
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