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
0d8f86c6
Commit
0d8f86c6
authored
May 03, 2014
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
May 08, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dpnet: Implement IDirectPlay8Client Initialize.
parent
594c4ea3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
7 deletions
+20
-7
client.c
dlls/dpnet/client.c
+12
-3
dpnet_private.h
dlls/dpnet/dpnet_private.h
+7
-3
client.c
dlls/dpnet/tests/client.c
+1
-1
No files found.
dlls/dpnet/client.c
View file @
0d8f86c6
...
...
@@ -86,9 +86,18 @@ static ULONG WINAPI IDirectPlay8ClientImpl_Release(IDirectPlay8Client *iface)
static
HRESULT
WINAPI
IDirectPlay8ClientImpl_Initialize
(
IDirectPlay8Client
*
iface
,
void
*
const
pvUserContext
,
const
PFNDPNMESSAGEHANDLER
pfn
,
const
DWORD
dwFlags
)
{
IDirectPlay8ClientImpl
*
This
=
impl_from_IDirectPlay8Client
(
iface
);
FIXME
(
"(%p):(%p,%p,%x): Stub
\n
"
,
This
,
pvUserContext
,
pfn
,
dwFlags
);
return
DPN_OK
;
IDirectPlay8ClientImpl
*
This
=
impl_from_IDirectPlay8Client
(
iface
);
TRACE
(
"(%p):(%p,%p,%x)
\n
"
,
This
,
pvUserContext
,
pfn
,
dwFlags
);
if
(
!
pfn
)
return
DPNERR_INVALIDPARAM
;
This
->
usercontext
=
pvUserContext
;
This
->
msghandler
=
pfn
;
This
->
flags
=
dwFlags
;
return
DPN_OK
;
}
static
HRESULT
WINAPI
IDirectPlay8ClientImpl_EnumServiceProviders
(
IDirectPlay8Client
*
iface
,
...
...
dlls/dpnet/dpnet_private.h
View file @
0d8f86c6
...
...
@@ -46,9 +46,13 @@ typedef struct IDirectPlay8ThreadPoolImpl IDirectPlay8ThreadPoolImpl;
*/
struct
IDirectPlay8ClientImpl
{
IDirectPlay8Client
IDirectPlay8Client_iface
;
LONG
ref
;
/* IDirectPlay8Client fields */
IDirectPlay8Client
IDirectPlay8Client_iface
;
LONG
ref
;
/* IDirectPlay8Client fields */
PFNDPNMESSAGEHANDLER
msghandler
;
DWORD
flags
;
void
*
usercontext
;
};
/* ------------------- */
...
...
dlls/dpnet/tests/client.c
View file @
0d8f86c6
...
...
@@ -44,7 +44,7 @@ static BOOL test_init_dp(void)
ok
(
hr
==
S_OK
,
"CoCreateInstance failed with 0x%x
\n
"
,
hr
);
hr
=
IDirectPlay8Client_Initialize
(
client
,
NULL
,
NULL
,
0
);
todo_wine
ok
(
hr
==
DPNERR_INVALIDPARAM
,
"got %x
\n
"
,
hr
);
ok
(
hr
==
DPNERR_INVALIDPARAM
,
"got %x
\n
"
,
hr
);
hr
=
IDirectPlay8Client_Initialize
(
client
,
NULL
,
DirectPlayMessageHandler
,
0
);
ok
(
hr
==
S_OK
,
"IDirectPlay8Client_Initialize failed with %x
\n
"
,
hr
);
...
...
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