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
a784e239
Commit
a784e239
authored
Mar 29, 2013
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Apr 02, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dplayx: Merge the IDirectPlay4_GetPlayerCaps helper.
parent
47cde46c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
35 deletions
+22
-35
dplay.c
dlls/dplayx/dplay.c
+22
-35
No files found.
dlls/dplayx/dplay.c
View file @
a784e239
...
...
@@ -143,9 +143,6 @@ static HRESULT DP_SP_SendEx
static
HRESULT
DP_IF_SetGroupData
(
IDirectPlay2Impl
*
This
,
DPID
idGroup
,
LPVOID
lpData
,
DWORD
dwDataSize
,
DWORD
dwFlags
,
BOOL
bAnsi
);
static
HRESULT
DP_IF_GetPlayerCaps
(
IDirectPlay2Impl
*
This
,
DPID
idPlayer
,
LPDPCAPS
lpDPCaps
,
DWORD
dwFlags
);
static
HRESULT
DP_IF_CancelMessage
(
IDirectPlay4Impl
*
This
,
DWORD
dwMsgID
,
DWORD
dwFlags
,
DWORD
dwMinPriority
,
DWORD
dwMaxPriority
,
BOOL
bAnsi
);
...
...
@@ -2066,28 +2063,6 @@ static HRESULT WINAPI DirectPlay2WImpl_EnumSessions
lpContext
,
dwFlags
,
FALSE
);
}
static
HRESULT
DP_IF_GetPlayerCaps
(
IDirectPlay2Impl
*
This
,
DPID
idPlayer
,
LPDPCAPS
lpDPCaps
,
DWORD
dwFlags
)
{
DPSP_GETCAPSDATA
data
;
TRACE
(
"(%p)->(0x%08x,%p,0x%08x)
\n
"
,
This
,
idPlayer
,
lpDPCaps
,
dwFlags
);
if
(
This
->
dp2
->
connectionInitialized
==
NO_PROVIDER
)
{
return
DPERR_UNINITIALIZED
;
}
/* Query the service provider */
data
.
idPlayer
=
idPlayer
;
data
.
dwFlags
=
dwFlags
;
data
.
lpCaps
=
lpDPCaps
;
data
.
lpISP
=
This
->
dp2
->
spData
.
lpISP
;
return
(
*
This
->
dp2
->
spData
.
lpCB
->
GetCaps
)(
&
data
);
}
static
HRESULT
WINAPI
IDirectPlay4AImpl_GetCaps
(
IDirectPlay4A
*
iface
,
DPCAPS
*
caps
,
DWORD
flags
)
{
return
IDirectPlayX_GetPlayerCaps
(
iface
,
DPID_ALLPLAYERS
,
caps
,
flags
);
...
...
@@ -2247,19 +2222,31 @@ static HRESULT WINAPI IDirectPlay4Impl_GetPlayerAddress( IDirectPlay4 *iface, DP
return
DP_OK
;
}
static
HRESULT
WINAPI
IDirectPlay4AImpl_GetPlayerCaps
(
IDirectPlay4A
*
iface
,
DPID
idP
layer
,
DPCAPS
*
lpPlayerCaps
,
DWORD
dwF
lags
)
static
HRESULT
WINAPI
IDirectPlay4AImpl_GetPlayerCaps
(
IDirectPlay4A
*
iface
,
DPID
p
layer
,
DPCAPS
*
caps
,
DWORD
f
lags
)
{
IDirectPlayImpl
*
This
=
impl_from_IDirectPlay4A
(
iface
);
return
DP_IF_GetPlayerCaps
(
This
,
idPlayer
,
lpPlayerCaps
,
dwF
lags
);
IDirectPlayImpl
*
This
=
impl_from_IDirectPlay4A
(
iface
);
return
IDirectPlayX_GetPlayerCaps
(
&
This
->
IDirectPlay4_iface
,
player
,
caps
,
f
lags
);
}
static
HRESULT
WINAPI
DirectPlay2WImpl_GetPlayerCaps
(
LPDIRECTPLAY2
iface
,
DPID
idPlayer
,
LPDPCAPS
lpPlayerCaps
,
DWORD
dwFlags
)
static
HRESULT
WINAPI
IDirectPlay4Impl_GetPlayerCaps
(
IDirectPlay4
*
iface
,
DPID
player
,
DPCAPS
*
caps
,
DWORD
flags
)
{
IDirectPlay2Impl
*
This
=
(
IDirectPlay2Impl
*
)
iface
;
return
DP_IF_GetPlayerCaps
(
This
,
idPlayer
,
lpPlayerCaps
,
dwFlags
);
IDirectPlayImpl
*
This
=
impl_from_IDirectPlay4
(
iface
);
DPSP_GETCAPSDATA
data
;
TRACE
(
"(%p)->(0x%08x,%p,0x%08x)
\n
"
,
This
,
player
,
caps
,
flags
);
if
(
This
->
dp2
->
connectionInitialized
==
NO_PROVIDER
)
return
DPERR_UNINITIALIZED
;
/* Query the service provider */
data
.
idPlayer
=
player
;
data
.
dwFlags
=
flags
;
data
.
lpCaps
=
caps
;
data
.
lpISP
=
This
->
dp2
->
spData
.
lpISP
;
return
(
*
This
->
dp2
->
spData
.
lpCB
->
GetCaps
)(
&
data
);
}
static
HRESULT
DP_IF_GetPlayerData
...
...
@@ -4501,7 +4488,7 @@ static const IDirectPlay4Vtbl dp4_vt =
XCAST
(
GetGroupName
)
DirectPlay2WImpl_GetGroupName
,
IDirectPlay4Impl_GetMessageCount
,
IDirectPlay4Impl_GetPlayerAddress
,
XCAST
(
GetPlayerCaps
)
DirectPlay2W
Impl_GetPlayerCaps
,
IDirectPlay4
Impl_GetPlayerCaps
,
XCAST
(
GetPlayerData
)
DirectPlay2WImpl_GetPlayerData
,
XCAST
(
GetPlayerName
)
DirectPlay2WImpl_GetPlayerName
,
XCAST
(
GetSessionDesc
)
DirectPlay2WImpl_GetSessionDesc
,
...
...
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