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
75ba7179
Commit
75ba7179
authored
Aug 11, 2011
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Aug 22, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gameux: COM cleanup in gameexplorer.c.
parent
fd513acf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
22 deletions
+12
-22
gameexplorer.c
dlls/gameux/gameexplorer.c
+12
-22
No files found.
dlls/gameux/gameexplorer.c
View file @
75ba7179
...
...
@@ -774,29 +774,19 @@ HRESULT GAMEUX_FindGameInstanceId(
typedef
struct
_GameExplorerImpl
{
const
struct
IGameExplorerVtbl
*
lpGameExplorerVtbl
;
const
struct
IGameExplorer2Vtbl
*
lpGameExplorer2Vtbl
;
IGameExplorer
IGameExplorer_iface
;
IGameExplorer2
IGameExplorer2_iface
;
LONG
ref
;
}
GameExplorerImpl
;
static
inline
GameExplorerImpl
*
impl_from_IGameExplorer
(
IGameExplorer
*
iface
)
{
return
(
GameExplorerImpl
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
GameExplorerImpl
,
lpGameExplorerVtbl
));
}
static
inline
IGameExplorer
*
IGameExplorer_from_impl
(
GameExplorerImpl
*
This
)
{
return
(
struct
IGameExplorer
*
)
&
This
->
lpGameExplorerVtbl
;
return
CONTAINING_RECORD
(
iface
,
GameExplorerImpl
,
IGameExplorer_iface
);
}
static
inline
GameExplorerImpl
*
impl_from_IGameExplorer2
(
IGameExplorer2
*
iface
)
{
return
(
GameExplorerImpl
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
GameExplorerImpl
,
lpGameExplorer2Vtbl
));
}
static
inline
IGameExplorer2
*
IGameExplorer2_from_impl
(
GameExplorerImpl
*
This
)
{
return
(
struct
IGameExplorer2
*
)
&
This
->
lpGameExplorer2Vtbl
;
return
CONTAINING_RECORD
(
iface
,
GameExplorerImpl
,
IGameExplorer2_iface
);
}
static
HRESULT
WINAPI
GameExplorerImpl_QueryInterface
(
...
...
@@ -813,11 +803,11 @@ static HRESULT WINAPI GameExplorerImpl_QueryInterface(
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
||
IsEqualGUID
(
riid
,
&
IID_IGameExplorer
))
{
*
ppvObject
=
IGameExplorer_from_impl
(
This
)
;
*
ppvObject
=
&
This
->
IGameExplorer_iface
;
}
else
if
(
IsEqualGUID
(
riid
,
&
IID_IGameExplorer2
))
{
*
ppvObject
=
IGameExplorer2_from_impl
(
This
)
;
*
ppvObject
=
&
This
->
IGameExplorer2_iface
;
}
else
{
...
...
@@ -919,19 +909,19 @@ static HRESULT WINAPI GameExplorer2Impl_QueryInterface(
void
**
ppvObject
)
{
GameExplorerImpl
*
This
=
impl_from_IGameExplorer2
(
iface
);
return
GameExplorerImpl_QueryInterface
(
IGameExplorer_from_impl
(
This
)
,
riid
,
ppvObject
);
return
GameExplorerImpl_QueryInterface
(
&
This
->
IGameExplorer_iface
,
riid
,
ppvObject
);
}
static
ULONG
WINAPI
GameExplorer2Impl_AddRef
(
IGameExplorer2
*
iface
)
{
GameExplorerImpl
*
This
=
impl_from_IGameExplorer2
(
iface
);
return
GameExplorerImpl_AddRef
(
IGameExplorer_from_impl
(
This
)
);
return
GameExplorerImpl_AddRef
(
&
This
->
IGameExplorer_iface
);
}
static
ULONG
WINAPI
GameExplorer2Impl_Release
(
IGameExplorer2
*
iface
)
{
GameExplorerImpl
*
This
=
impl_from_IGameExplorer2
(
iface
);
return
GameExplorerImpl_Release
(
IGameExplorer_from_impl
(
This
)
);
return
GameExplorerImpl_Release
(
&
This
->
IGameExplorer_iface
);
}
static
HRESULT
WINAPI
GameExplorer2Impl_CheckAccess
(
...
...
@@ -1026,11 +1016,11 @@ HRESULT GameExplorer_create(
if
(
!
pGameExplorer
)
return
E_OUTOFMEMORY
;
pGameExplorer
->
lpGameExplorer
Vtbl
=
&
GameExplorerImplVtbl
;
pGameExplorer
->
lpGameExplorer2
Vtbl
=
&
GameExplorer2ImplVtbl
;
pGameExplorer
->
IGameExplorer_iface
.
lp
Vtbl
=
&
GameExplorerImplVtbl
;
pGameExplorer
->
IGameExplorer2_iface
.
lp
Vtbl
=
&
GameExplorer2ImplVtbl
;
pGameExplorer
->
ref
=
1
;
*
ppObj
=
(
IUnknown
*
)
(
&
pGameExplorer
->
lpGameExplorerVtbl
)
;
*
ppObj
=
(
IUnknown
*
)
&
pGameExplorer
->
IGameExplorer_iface
;
TRACE
(
"returning iface: %p
\n
"
,
*
ppObj
);
return
S_OK
;
...
...
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