Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
684a666d
Commit
684a666d
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_AddGroupToGroup helper.
parent
2e2226dd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
39 deletions
+21
-39
dplay.c
dlls/dplayx/dplay.c
+21
-39
No files found.
dlls/dplayx/dplay.c
View file @
684a666d
...
...
@@ -98,8 +98,6 @@ static HRESULT DP_IF_SetGroupName
static
HRESULT
DP_IF_SetPlayerName
(
IDirectPlay2Impl
*
This
,
DPID
idPlayer
,
LPDPNAME
lpPlayerName
,
DWORD
dwFlags
,
BOOL
bAnsi
);
static
HRESULT
DP_IF_AddGroupToGroup
(
IDirectPlay3Impl
*
This
,
DPID
idParentGroup
,
DPID
idGroup
);
static
HRESULT
DP_IF_CreateGroup
(
IDirectPlay2AImpl
*
This
,
LPVOID
lpMsgHdr
,
LPDPID
lpidGroup
,
LPDPNAME
lpGroupName
,
LPVOID
lpData
,
DWORD
dwDataSize
,
...
...
@@ -2975,43 +2973,42 @@ static void DP_CopySessionDesc( LPDPSESSIONDESC2 lpSessionDest,
}
}
static
HRESULT
WINAPI
IDirectPlay4AImpl_AddGroupToGroup
(
IDirectPlay4A
*
iface
,
DPID
parent
,
DPID
group
)
{
IDirectPlayImpl
*
This
=
impl_from_IDirectPlay4A
(
iface
);
return
IDirectPlayX_AddGroupToGroup
(
&
This
->
IDirectPlay4_iface
,
parent
,
group
);
}
static
HRESULT
DP_IF_AddGroupToGroup
(
IDirectPlay3Impl
*
This
,
DPID
idParentGroup
,
DPID
idG
roup
)
static
HRESULT
WINAPI
IDirectPlay4Impl_AddGroupToGroup
(
IDirectPlay4
*
iface
,
DPID
parent
,
DPID
g
roup
)
{
lpGroupData
lpGData
;
lpGroupList
lpNewGList
;
IDirectPlayImpl
*
This
=
impl_from_IDirectPlay4
(
iface
);
lpGroupData
gdata
;
lpGroupList
glist
;
TRACE
(
"(%p)->(0x%08x,0x%08x)
\n
"
,
This
,
idParentGroup
,
idG
roup
);
TRACE
(
"(%p)->(0x%08x,0x%08x)
\n
"
,
This
,
parent
,
g
roup
);
if
(
This
->
dp2
->
connectionInitialized
==
NO_PROVIDER
)
{
if
(
This
->
dp2
->
connectionInitialized
==
NO_PROVIDER
)
return
DPERR_UNINITIALIZED
;
}
if
(
DP_FindAnyGroup
(
(
IDirectPlay2AImpl
*
)
This
,
idParentGroup
)
==
NULL
)
{
if
(
!
DP_FindAnyGroup
(
This
,
parent
)
)
return
DPERR_INVALIDGROUP
;
}
if
(
(
lpGData
=
DP_FindAnyGroup
(
(
IDirectPlay2AImpl
*
)
This
,
idGroup
)
)
==
NULL
)
{
if
(
(
gdata
=
DP_FindAnyGroup
(
This
,
group
)
)
==
NULL
)
return
DPERR_INVALIDGROUP
;
}
/* Create a player list (ie "shortcut" ) */
lpNewGList
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
lpNewGList
)
);
if
(
lpNewGList
==
NULL
)
{
glist
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
glist
)
);
if
(
!
glist
)
return
DPERR_CANTADDPLAYER
;
}
/* Add the shortcut */
lpGD
ata
->
uRef
++
;
lpNewGList
->
lpGData
=
lpGD
ata
;
gd
ata
->
uRef
++
;
glist
->
lpGData
=
gd
ata
;
/* Add the player to the list of players for this group */
DPQ_INSERT
(
lpGData
->
groups
,
lpNewGL
ist
,
groups
);
DPQ_INSERT
(
gdata
->
groups
,
gl
ist
,
groups
);
/* Send a ADDGROUPTOGROUP message */
FIXME
(
"Not sending message
\n
"
);
...
...
@@ -3019,20 +3016,6 @@ static HRESULT DP_IF_AddGroupToGroup
return
DP_OK
;
}
static
HRESULT
WINAPI
IDirectPlay4AImpl_AddGroupToGroup
(
IDirectPlay4A
*
iface
,
DPID
idParentGroup
,
DPID
idGroup
)
{
IDirectPlayImpl
*
This
=
impl_from_IDirectPlay4A
(
iface
);
return
DP_IF_AddGroupToGroup
(
This
,
idParentGroup
,
idGroup
);
}
static
HRESULT
WINAPI
DirectPlay3WImpl_AddGroupToGroup
(
LPDIRECTPLAY3
iface
,
DPID
idParentGroup
,
DPID
idGroup
)
{
IDirectPlay3Impl
*
This
=
(
IDirectPlay3Impl
*
)
iface
;
return
DP_IF_AddGroupToGroup
(
This
,
idParentGroup
,
idGroup
);
}
static
HRESULT
DP_IF_CreateGroupInGroup
(
IDirectPlay3Impl
*
This
,
LPVOID
lpMsgHdr
,
DPID
idParentGroup
,
LPDPID
lpidGroup
,
LPDPNAME
lpGroupName
,
LPVOID
lpData
,
...
...
@@ -4436,8 +4419,7 @@ static const IDirectPlay4Vtbl dp4_vt =
IDirectPlay4Impl_SetPlayerData
,
XCAST
(
SetPlayerName
)
DirectPlay2WImpl_SetPlayerName
,
XCAST
(
SetSessionDesc
)
DirectPlay2WImpl_SetSessionDesc
,
XCAST
(
AddGroupToGroup
)
DirectPlay3WImpl_AddGroupToGroup
,
IDirectPlay4Impl_AddGroupToGroup
,
XCAST
(
CreateGroupInGroup
)
DirectPlay3WImpl_CreateGroupInGroup
,
XCAST
(
DeleteGroupFromGroup
)
DirectPlay3WImpl_DeleteGroupFromGroup
,
IDirectPlay4Impl_EnumConnections
,
...
...
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