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
ce9546f2
Commit
ce9546f2
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 gamestatistics.c.
parent
75ba7179
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/gamestatistics.c
+9
-14
9 additions, 14 deletions
dlls/gameux/gamestatistics.c
with
9 additions
and
14 deletions
dlls/gameux/gamestatistics.c
+
9
−
14
View file @
ce9546f2
...
...
@@ -651,20 +651,15 @@ static HRESULT GAMEUX_loadGameStatistics(struct GAMEUX_STATS *pStats,
*/
typedef
struct
_GameStatisticsImpl
{
const
struct
IGameStatistics
Vtbl
*
lpVtbl
;
IGameStatistics
IGameStatistics
_iface
;
LONG
ref
;
struct
GAMEUX_STATS
stats
;
}
GameStatisticsImpl
;
static
inline
GameStatisticsImpl
*
impl_from_IGameStatistics
(
IGameStatistics
*
iface
)
{
return
(
GameStatisticsImpl
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
GameStatistics
Impl
,
lpVtbl
)
);
return
CONTAINING_RECORD
(
iface
,
GameStatisticsImpl
,
I
GameStatistics
_iface
);
}
static
inline
IGameStatistics
*
IGameStatistics_from_impl
(
GameStatisticsImpl
*
This
)
{
return
(
struct
IGameStatistics
*
)
&
This
->
lpVtbl
;
}
static
HRESULT
WINAPI
GameStatisticsImpl_QueryInterface
(
IGameStatistics
*
iface
,
...
...
@@ -1003,7 +998,7 @@ static HRESULT create_IGameStatistics(GameStatisticsImpl** ppStats)
if
(
!
(
*
ppStats
))
return
E_OUTOFMEMORY
;
(
*
ppStats
)
->
lpVtbl
=
&
GameStatisticsImplVtbl
;
(
*
ppStats
)
->
IGameStatistics_iface
.
lpVtbl
=
&
GameStatisticsImplVtbl
;
(
*
ppStats
)
->
ref
=
1
;
TRACE
(
"returning coclass: %p
\n
"
,
*
ppStats
);
...
...
@@ -1015,13 +1010,13 @@ static HRESULT create_IGameStatistics(GameStatisticsImpl** ppStats)
*/
typedef
struct
_GameStatisticsMgrImpl
{
const
struct
IGameStatisticsMgr
Vtbl
*
lpVtbl
;
IGameStatisticsMgr
IGameStatisticsMgr
_iface
;
LONG
ref
;
}
GameStatisticsMgrImpl
;
static
inline
GameStatisticsMgrImpl
*
impl_from_IGameStatisticsMgr
(
IGameStatisticsMgr
*
iface
)
{
return
(
GameStatisticsMgrImpl
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
GameStatisticsMgr
Impl
,
lpVtbl
)
);
return
CONTAINING_RECORD
(
iface
,
GameStatisticsMgrImpl
,
I
GameStatisticsMgr
_iface
);
}
...
...
@@ -1088,7 +1083,7 @@ static HRESULT STDMETHODCALLTYPE GameStatisticsMgrImpl_GetGameStatistics(
{
HRESULT
hr
;
WCHAR
lpApplicationId
[
49
];
GameStatisticsImpl
*
statisticsImpl
=
NULL
;
GameStatisticsImpl
*
statisticsImpl
;
IGameStatistics
*
output_iface
;
TRACE
(
"(%p, %s, 0x%x, %p, %p)
\n
"
,
iface
,
debugstr_w
(
GDFBinaryPath
),
openType
,
pOpenResult
,
ppiStats
);
...
...
@@ -1100,7 +1095,7 @@ static HRESULT STDMETHODCALLTYPE GameStatisticsMgrImpl_GetGameStatistics(
if
(
SUCCEEDED
(
hr
))
{
output_iface
=
IGameS
tatistics
_from_impl
(
s
tatistics
Impl
)
;
output_iface
=
&
s
tatistics
Impl
->
IGameS
tatistics
_iface
;
hr
=
GAMEUX_buildStatisticsFilePath
(
lpApplicationId
,
statisticsImpl
->
stats
.
sStatsFile
);
}
...
...
@@ -1161,10 +1156,10 @@ HRESULT GameStatistics_create(
if
(
!
pGameStatistics
)
return
E_OUTOFMEMORY
;
pGameStatistics
->
lpVtbl
=
&
GameStatisticsMgrImplVtbl
;
pGameStatistics
->
IGameStatisticsMgr_iface
.
lpVtbl
=
&
GameStatisticsMgrImplVtbl
;
pGameStatistics
->
ref
=
1
;
*
ppObj
=
(
IUnknown
*
)
(
&
pGameStatistics
->
lpVtbl
)
;
*
ppObj
=
(
IUnknown
*
)
&
pGameStatistics
->
IGameStatisticsMgr_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