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
957cfa68
Commit
957cfa68
authored
Dec 29, 2010
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wmiutils: Use an iface instead of a vtbl pointer in wmiutils_cf.
parent
a36f51f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
main.c
dlls/wmiutils/main.c
+4
-4
No files found.
dlls/wmiutils/main.c
View file @
957cfa68
...
...
@@ -39,13 +39,13 @@ typedef HRESULT (*fnCreateInstance)( IUnknown *pUnkOuter, LPVOID *ppObj );
typedef
struct
{
const
struct
IClassFactoryVtbl
*
vtbl
;
IClassFactory
IClassFactory_iface
;
fnCreateInstance
pfnCreateInstance
;
}
wmiutils_cf
;
static
inline
wmiutils_cf
*
impl_from_IClassFactory
(
IClassFactory
*
iface
)
{
return
(
wmiutils_cf
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
wmiutils_cf
,
vtbl
)
);
return
CONTAINING_RECORD
(
iface
,
wmiutils_cf
,
IClassFactory_iface
);
}
static
HRESULT
WINAPI
wmiutils_cf_QueryInterface
(
IClassFactory
*
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
...
...
@@ -112,7 +112,7 @@ static const struct IClassFactoryVtbl wmiutils_cf_vtbl =
wmiutils_cf_LockServer
};
static
wmiutils_cf
status_code_cf
=
{
&
wmiutils_cf_vtbl
,
WbemStatusCodeText_create
};
static
wmiutils_cf
status_code_cf
=
{
{
&
wmiutils_cf_vtbl
}
,
WbemStatusCodeText_create
};
BOOL
WINAPI
DllMain
(
HINSTANCE
hinst
,
DWORD
reason
,
LPVOID
lpv
)
{
...
...
@@ -138,7 +138,7 @@ HRESULT WINAPI DllGetClassObject( REFCLSID rclsid, REFIID iid, LPVOID *ppv )
if
(
IsEqualGUID
(
rclsid
,
&
CLSID_WbemStatusCode
))
{
cf
=
(
IClassFactory
*
)
&
status_code_cf
.
vtbl
;
cf
=
&
status_code_cf
.
IClassFactory_iface
;
}
if
(
!
cf
)
return
CLASS_E_CLASSNOTAVAILABLE
;
return
IClassFactory_QueryInterface
(
cf
,
iid
,
ppv
);
...
...
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