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
dffc8fc5
Commit
dffc8fc5
authored
Apr 09, 2013
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Apr 10, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dplayx: Remove the duplicated IDirectPlayLobby{2,3}Impl structs.
parent
d7323157
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
49 deletions
+15
-49
dplobby.c
dlls/dplayx/dplobby.c
+15
-49
No files found.
dlls/dplayx/dplobby.c
View file @
dffc8fc5
...
...
@@ -40,10 +40,10 @@ WINE_DEFAULT_DEBUG_CHANNEL(dplay);
*/
typedef
struct
IDirectPlayLobbyImpl
IDirectPlayLobbyAImpl
;
typedef
struct
IDirectPlayLobbyImpl
IDirectPlayLobbyWImpl
;
typedef
struct
IDirectPlayLobby
2Impl
IDirectPlayLobby2AImpl
;
typedef
struct
IDirectPlayLobby
2Impl
IDirectPlayLobby2WImpl
;
typedef
struct
IDirectPlayLobby
3Impl
IDirectPlayLobby3AImpl
;
typedef
struct
IDirectPlayLobby
3Impl
IDirectPlayLobby3WImpl
;
typedef
struct
IDirectPlayLobby
Impl
IDirectPlayLobby2AImpl
;
typedef
struct
IDirectPlayLobby
Impl
IDirectPlayLobby2WImpl
;
typedef
struct
IDirectPlayLobby
Impl
IDirectPlayLobby3AImpl
;
typedef
struct
IDirectPlayLobby
Impl
IDirectPlayLobby3WImpl
;
/* Forward declarations for this module helper methods */
HRESULT
DPL_CreateCompoundAddress
(
LPCDPCOMPOUNDADDRESSELEMENT
lpElements
,
DWORD
dwElementCount
,
...
...
@@ -85,28 +85,13 @@ typedef struct tagDirectPlayLobbyData
DPQ_HEAD
(
DPLMSG
)
msgs
;
/* List of messages received */
}
DirectPlayLobbyData
;
#define DPL_IMPL_FIELDS \
LONG ulInterfaceRef; \
DirectPlayLobbyIUnknownData* unk; \
DirectPlayLobbyData* dpl;
struct
IDirectPlayLobbyImpl
{
const
IDirectPlayLobbyVtbl
*
lpVtbl
;
DPL_IMPL_FIELDS
};
struct
IDirectPlayLobby2Impl
typedef
struct
IDirectPlayLobbyImpl
{
const
IDirectPlayLobby2Vtbl
*
lpVtbl
;
DPL_IMPL_FIELDS
};
struct
IDirectPlayLobby3Impl
{
const
IDirectPlayLobby3Vtbl
*
lpVtbl
;
DPL_IMPL_FIELDS
};
const
void
*
lpVtbl
;
LONG
ulInterfaceRef
;
DirectPlayLobbyIUnknownData
*
unk
;
DirectPlayLobbyData
*
dpl
;
}
IDirectPlayLobbyImpl
;
/* Forward declarations of virtual tables */
static
const
IDirectPlayLobbyVtbl
directPlayLobbyWVT
;
...
...
@@ -203,46 +188,26 @@ static BOOL DPL_DestroyLobby1( LPVOID lpDPL )
HRESULT
DPL_CreateInterface
(
REFIID
riid
,
LPVOID
*
ppvObj
)
{
TRACE
(
" for %s
\n
"
,
debugstr_guid
(
riid
)
)
;
IDirectPlayLobbyImpl
*
This
;
*
ppvObj
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IDirectPlayLobbyWImpl
)
);
TRACE
(
" for %s
\n
"
,
debugstr_guid
(
riid
)
);
if
(
*
ppvObj
==
NULL
)
{
This
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
This
)
);
if
(
!
This
)
return
DPERR_OUTOFMEMORY
;
}
if
(
IsEqualGUID
(
&
IID_IDirectPlayLobby
,
riid
)
)
{
IDirectPlayLobbyWImpl
*
This
=
*
ppvObj
;
This
->
lpVtbl
=
&
directPlayLobbyWVT
;
}
else
if
(
IsEqualGUID
(
&
IID_IDirectPlayLobbyA
,
riid
)
)
{
IDirectPlayLobbyAImpl
*
This
=
*
ppvObj
;
This
->
lpVtbl
=
&
directPlayLobbyAVT
;
}
else
if
(
IsEqualGUID
(
&
IID_IDirectPlayLobby2
,
riid
)
)
{
IDirectPlayLobby2WImpl
*
This
=
*
ppvObj
;
This
->
lpVtbl
=
&
directPlayLobby2WVT
;
}
else
if
(
IsEqualGUID
(
&
IID_IDirectPlayLobby2A
,
riid
)
)
{
IDirectPlayLobby2AImpl
*
This
=
*
ppvObj
;
This
->
lpVtbl
=
&
directPlayLobby2AVT
;
}
else
if
(
IsEqualGUID
(
&
IID_IDirectPlayLobby3
,
riid
)
)
{
IDirectPlayLobby3WImpl
*
This
=
*
ppvObj
;
This
->
lpVtbl
=
&
directPlayLobby3WVT
;
}
else
if
(
IsEqualGUID
(
&
IID_IDirectPlayLobby3A
,
riid
)
)
{
IDirectPlayLobby3AImpl
*
This
=
*
ppvObj
;
This
->
lpVtbl
=
&
directPlayLobby3AVT
;
}
else
{
/* Unsupported interface */
...
...
@@ -253,6 +218,7 @@ HRESULT DPL_CreateInterface
}
/* Initialize it */
*
ppvObj
=
This
;
if
(
DPL_CreateIUnknown
(
*
ppvObj
)
&&
DPL_CreateLobby1
(
*
ppvObj
)
)
...
...
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