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
1d43acf5
Commit
1d43acf5
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_SetGroupData helper.
parent
0dd3f041
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
38 deletions
+18
-38
dplay.c
dlls/dplayx/dplay.c
+18
-38
No files found.
dlls/dplayx/dplay.c
View file @
1d43acf5
...
...
@@ -137,9 +137,6 @@ static HRESULT DP_SP_SendEx
(
IDirectPlay2Impl
*
This
,
DWORD
dwFlags
,
LPVOID
lpData
,
DWORD
dwDataSize
,
DWORD
dwPriority
,
DWORD
dwTimeout
,
LPVOID
lpContext
,
LPDWORD
lpdwMsgID
);
static
HRESULT
DP_IF_SetGroupData
(
IDirectPlay2Impl
*
This
,
DPID
idGroup
,
LPVOID
lpData
,
DWORD
dwDataSize
,
DWORD
dwFlags
,
BOOL
bAnsi
);
static
HRESULT
DP_IF_CancelMessage
(
IDirectPlay4Impl
*
This
,
DWORD
dwMsgID
,
DWORD
dwFlags
,
DWORD
dwMinPriority
,
DWORD
dwMaxPriority
,
BOOL
bAnsi
);
...
...
@@ -2648,30 +2645,30 @@ static HRESULT WINAPI IDirectPlay4Impl_Send( IDirectPlay4 *iface, DPID from, DPI
return
IDirectPlayX_SendEx
(
iface
,
from
,
to
,
flags
,
data
,
size
,
0
,
0
,
NULL
,
NULL
);
}
static
HRESULT
DP_IF_SetGroupData
(
IDirectPlay2Impl
*
This
,
DPID
idGroup
,
LPVOID
lpData
,
DWORD
dwDataSize
,
DWORD
dwFlags
,
BOOL
bAnsi
)
static
HRESULT
WINAPI
IDirectPlay4AImpl_SetGroupData
(
IDirectPlay4A
*
iface
,
DPID
group
,
void
*
data
,
DWORD
size
,
DWORD
flags
)
{
lpGroupData
lpGData
;
IDirectPlayImpl
*
This
=
impl_from_IDirectPlay4A
(
iface
);
return
IDirectPlayX_SetGroupData
(
&
This
->
IDirectPlay4_iface
,
group
,
data
,
size
,
flags
);
}
TRACE
(
"(%p)->(0x%08x,%p,0x%08x,0x%08x,%u)
\n
"
,
This
,
idGroup
,
lpData
,
dwDataSize
,
dwFlags
,
bAnsi
);
static
HRESULT
WINAPI
IDirectPlay4Impl_SetGroupData
(
IDirectPlay4
*
iface
,
DPID
group
,
void
*
data
,
DWORD
size
,
DWORD
flags
)
{
IDirectPlayImpl
*
This
=
impl_from_IDirectPlay4
(
iface
);
lpGroupData
gdata
;
TRACE
(
"(%p)->(0x%08x,%p,0x%08x,0x%08x)
\n
"
,
This
,
group
,
data
,
size
,
flags
);
/* Parameter check */
if
(
(
lpData
==
NULL
)
&&
(
dwDataSize
!=
0
)
)
{
if
(
!
data
&&
size
)
return
DPERR_INVALIDPARAMS
;
}
/* Find the pointer to the data for this player */
if
(
(
lpGData
=
DP_FindAnyGroup
(
This
,
idGroup
)
)
==
NULL
)
{
if
(
(
gdata
=
DP_FindAnyGroup
(
This
,
group
)
)
==
NULL
)
return
DPERR_INVALIDOBJECT
;
}
if
(
!
(
dwF
lags
&
DPSET_LOCAL
)
)
if
(
!
(
f
lags
&
DPSET_LOCAL
)
)
{
FIXME
(
"Was this group created by this interface?
\n
"
);
/* FIXME: If this is a remote update need to allow it but not
...
...
@@ -2679,34 +2676,17 @@ static HRESULT DP_IF_SetGroupData
*/
}
DP_SetGroupData
(
lpGData
,
dwFlags
,
lpData
,
dwDataS
ize
);
DP_SetGroupData
(
gdata
,
flags
,
data
,
s
ize
);
/* FIXME: Only send a message if this group is local to the session otherwise
* it will have been rejected above
*/
if
(
!
(
dwFlags
&
DPSET_LOCAL
)
)
{
if
(
!
(
flags
&
DPSET_LOCAL
)
)
FIXME
(
"Send msg?
\n
"
);
}
return
DP_OK
;
}
static
HRESULT
WINAPI
IDirectPlay4AImpl_SetGroupData
(
IDirectPlay4A
*
iface
,
DPID
idGroup
,
void
*
lpData
,
DWORD
dwDataSize
,
DWORD
dwFlags
)
{
IDirectPlayImpl
*
This
=
impl_from_IDirectPlay4A
(
iface
);
return
DP_IF_SetGroupData
(
This
,
idGroup
,
lpData
,
dwDataSize
,
dwFlags
,
TRUE
);
}
static
HRESULT
WINAPI
DirectPlay2WImpl_SetGroupData
(
LPDIRECTPLAY2
iface
,
DPID
idGroup
,
LPVOID
lpData
,
DWORD
dwDataSize
,
DWORD
dwFlags
)
{
IDirectPlay2Impl
*
This
=
(
IDirectPlay2Impl
*
)
iface
;
return
DP_IF_SetGroupData
(
This
,
idGroup
,
lpData
,
dwDataSize
,
dwFlags
,
FALSE
);
}
static
HRESULT
DP_IF_SetGroupName
(
IDirectPlay2Impl
*
This
,
DPID
idGroup
,
LPDPNAME
lpGroupName
,
DWORD
dwFlags
,
BOOL
bAnsi
)
...
...
@@ -4475,7 +4455,7 @@ static const IDirectPlay4Vtbl dp4_vt =
IDirectPlay4Impl_Open
,
XCAST
(
Receive
)
DirectPlay2WImpl_Receive
,
IDirectPlay4Impl_Send
,
XCAST
(
SetGroupData
)
DirectPlay2W
Impl_SetGroupData
,
IDirectPlay4
Impl_SetGroupData
,
XCAST
(
SetGroupName
)
DirectPlay2WImpl_SetGroupName
,
XCAST
(
SetPlayerData
)
DirectPlay2WImpl_SetPlayerData
,
XCAST
(
SetPlayerName
)
DirectPlay2WImpl_SetPlayerName
,
...
...
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