Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lorenzo Ferrillo
wine
Commits
75ba7179
Commit
75ba7179
authored
13 years ago
by
Michael Stefaniuc
Committed by
Alexandre Julliard
13 years ago
Browse files
Options
Downloads
Patches
Plain Diff
gameux: COM cleanup in gameexplorer.c.
parent
fd513acf
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/gameux/gameexplorer.c
+12
-22
12 additions, 22 deletions
dlls/gameux/gameexplorer.c
with
12 additions
and
22 deletions
dlls/gameux/gameexplorer.c
+
12
−
22
View file @
75ba7179
...
...
@@ -774,29 +774,19 @@ HRESULT GAMEUX_FindGameInstanceId(
typedef
struct
_GameExplorerImpl
{
const
struct
IGameExplorer
Vtbl
*
lp
GameExplorer
Vtbl
;
const
struct
IGameExplorer2
Vtbl
*
lp
GameExplorer2
Vtbl
;
IGameExplorer
I
GameExplorer
_iface
;
IGameExplorer2
I
GameExplorer2
_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
->
lp
GameExplorerVtbl
=
&
GameExplorerImplVtbl
;
pGameExplorer
->
lp
GameExplorer2Vtbl
=
&
GameExplorer2ImplVtbl
;
pGameExplorer
->
I
GameExplorer
_iface
.
lp
Vtbl
=
&
GameExplorerImplVtbl
;
pGameExplorer
->
I
GameExplorer2
_iface
.
lp
Vtbl
=
&
GameExplorer2ImplVtbl
;
pGameExplorer
->
ref
=
1
;
*
ppObj
=
(
IUnknown
*
)
(
&
pGameExplorer
->
lp
GameExplorer
Vtbl
)
;
*
ppObj
=
(
IUnknown
*
)
&
pGameExplorer
->
I
GameExplorer
_iface
;
TRACE
(
"returning iface: %p
\n
"
,
*
ppObj
);
return
S_OK
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment