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
5183ebd8
Commit
5183ebd8
authored
Oct 28, 2016
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Nov 01, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dpnet: Implement IDirectPlay8LobbyClient Initialize.
Signed-off-by:
Alistair Leslie-Hughes
<
leslie_alistair@hotmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5f797e6c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
3 deletions
+17
-3
client.c
dlls/dpnet/client.c
+13
-2
client.c
dlls/dpnet/tests/client.c
+4
-1
No files found.
dlls/dpnet/client.c
View file @
5183ebd8
...
@@ -40,6 +40,10 @@ typedef struct IDirectPlay8LobbyClientImpl
...
@@ -40,6 +40,10 @@ typedef struct IDirectPlay8LobbyClientImpl
{
{
IDirectPlay8LobbyClient
IDirectPlay8LobbyClient_iface
;
IDirectPlay8LobbyClient
IDirectPlay8LobbyClient_iface
;
LONG
ref
;
LONG
ref
;
PFNDPNMESSAGEHANDLER
msghandler
;
DWORD
flags
;
void
*
usercontext
;
}
IDirectPlay8LobbyClientImpl
;
}
IDirectPlay8LobbyClientImpl
;
static
inline
IDirectPlay8LobbyClientImpl
*
impl_from_IDirectPlay8LobbyClient
(
IDirectPlay8LobbyClient
*
iface
)
static
inline
IDirectPlay8LobbyClientImpl
*
impl_from_IDirectPlay8LobbyClient
(
IDirectPlay8LobbyClient
*
iface
)
...
@@ -427,9 +431,16 @@ static HRESULT WINAPI lobbyclient_Initialize(IDirectPlay8LobbyClient *iface, voi
...
@@ -427,9 +431,16 @@ static HRESULT WINAPI lobbyclient_Initialize(IDirectPlay8LobbyClient *iface, voi
{
{
IDirectPlay8LobbyClientImpl
*
This
=
impl_from_IDirectPlay8LobbyClient
(
iface
);
IDirectPlay8LobbyClientImpl
*
This
=
impl_from_IDirectPlay8LobbyClient
(
iface
);
FIXME
(
"(%p)->(%p %p 0x%08
x)
\n
"
,
This
,
context
,
msghandler
,
flags
);
TRACE
(
"(%p):(%p,%p,%
x)
\n
"
,
This
,
context
,
msghandler
,
flags
);
return
E_NOTIMPL
;
if
(
!
msghandler
)
return
E_POINTER
;
This
->
usercontext
=
context
;
This
->
msghandler
=
msghandler
;
This
->
flags
=
flags
;
return
DPN_OK
;
}
}
static
HRESULT
WINAPI
lobbyclient_EnumLocalPrograms
(
IDirectPlay8LobbyClient
*
iface
,
GUID
*
guidapplication
,
static
HRESULT
WINAPI
lobbyclient_EnumLocalPrograms
(
IDirectPlay8LobbyClient
*
iface
,
GUID
*
guidapplication
,
...
...
dlls/dpnet/tests/client.c
View file @
5183ebd8
...
@@ -220,8 +220,11 @@ static void test_lobbyclient(void)
...
@@ -220,8 +220,11 @@ static void test_lobbyclient(void)
ok
(
hr
==
S_OK
,
"Failed to create object
\n
"
);
ok
(
hr
==
S_OK
,
"Failed to create object
\n
"
);
if
(
SUCCEEDED
(
hr
))
if
(
SUCCEEDED
(
hr
))
{
{
hr
=
IDirectPlay8LobbyClient_Initialize
(
client
,
NULL
,
NULL
,
0
);
ok
(
hr
==
E_POINTER
,
"got 0x%08x
\n
"
,
hr
);
hr
=
IDirectPlay8LobbyClient_Initialize
(
client
,
NULL
,
DirectPlayLobbyClientMessageHandler
,
0
);
hr
=
IDirectPlay8LobbyClient_Initialize
(
client
,
NULL
,
DirectPlayLobbyClientMessageHandler
,
0
);
todo_wine
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
hr
=
IDirectPlay8LobbyClient_Close
(
client
,
0
);
hr
=
IDirectPlay8LobbyClient_Close
(
client
,
0
);
todo_wine
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
todo_wine
ok
(
hr
==
S_OK
,
"got 0x%08x
\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