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
b48f7bec
Commit
b48f7bec
authored
Jul 21, 2011
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jul 21, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gameux: COM cleanup for the IClassFactory iface.
parent
4ecb339f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
factory.c
dlls/gameux/factory.c
+6
-6
No files found.
dlls/gameux/factory.c
View file @
b48f7bec
...
@@ -41,13 +41,13 @@ typedef HRESULT (*fnCreateInstance)(IUnknown *pUnkOuter, IUnknown **ppObj);
...
@@ -41,13 +41,13 @@ typedef HRESULT (*fnCreateInstance)(IUnknown *pUnkOuter, IUnknown **ppObj);
*/
*/
typedef
struct
_gameuxcf
typedef
struct
_gameuxcf
{
{
const
struct
IClassFactoryVtbl
*
lpVtbl
;
IClassFactory
IClassFactory_iface
;
fnCreateInstance
pfnCreateInstance
;
fnCreateInstance
pfnCreateInstance
;
}
gameuxcf
;
}
gameuxcf
;
static
inline
gameuxcf
*
impl_from_IClassFactory
(
IClassFactory
*
iface
)
static
inline
gameuxcf
*
impl_from_IClassFactory
(
IClassFactory
*
iface
)
{
{
return
(
gameuxcf
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
gameuxcf
,
lpVtbl
)
);
return
CONTAINING_RECORD
(
iface
,
gameuxcf
,
IClassFactory_iface
);
}
}
static
HRESULT
WINAPI
gameuxcf_QueryInterface
(
static
HRESULT
WINAPI
gameuxcf_QueryInterface
(
...
@@ -130,8 +130,8 @@ static const struct IClassFactoryVtbl gameuxcf_vtbl =
...
@@ -130,8 +130,8 @@ static const struct IClassFactoryVtbl gameuxcf_vtbl =
gameuxcf_LockServer
gameuxcf_LockServer
};
};
static
gameuxcf
gameexplorercf
=
{
&
gameuxcf_vtbl
,
GameExplorer_create
};
static
gameuxcf
gameexplorercf
=
{
{
&
gameuxcf_vtbl
}
,
GameExplorer_create
};
static
gameuxcf
gamestatisticscf
=
{
&
gameuxcf_vtbl
,
GameStatistics_create
};
static
gameuxcf
gamestatisticscf
=
{
{
&
gameuxcf_vtbl
}
,
GameStatistics_create
};
/***************************************************************
/***************************************************************
* gameux ClassFactory
* gameux ClassFactory
...
@@ -147,11 +147,11 @@ HRESULT WINAPI DllGetClassObject(
...
@@ -147,11 +147,11 @@ HRESULT WINAPI DllGetClassObject(
if
(
IsEqualCLSID
(
rclsid
,
&
CLSID_GameExplorer
))
if
(
IsEqualCLSID
(
rclsid
,
&
CLSID_GameExplorer
))
{
{
cf
=
(
IClassFactory
*
)
&
gameexplorercf
.
lpVtbl
;
cf
=
&
gameexplorercf
.
IClassFactory_iface
;
}
}
else
if
(
IsEqualCLSID
(
rclsid
,
&
CLSID_GameStatistics
))
else
if
(
IsEqualCLSID
(
rclsid
,
&
CLSID_GameStatistics
))
{
{
cf
=
(
IClassFactory
*
)
&
gamestatisticscf
.
lpVtbl
;
cf
=
&
gamestatisticscf
.
IClassFactory_iface
;
}
}
if
(
!
cf
)
if
(
!
cf
)
...
...
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