Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
17b4de2b
Commit
17b4de2b
authored
Dec 29, 2010
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wbemprox: Use an iface instead of a vtbl pointer in wbemprox_cf.
parent
65ff66a1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
main.c
dlls/wbemprox/main.c
+4
-4
No files found.
dlls/wbemprox/main.c
View file @
17b4de2b
...
...
@@ -40,13 +40,13 @@ typedef HRESULT (*fnCreateInstance)( IUnknown *pUnkOuter, LPVOID *ppObj );
typedef
struct
{
const
struct
IClassFactoryVtbl
*
vtbl
;
IClassFactory
IClassFactory_iface
;
fnCreateInstance
pfnCreateInstance
;
}
wbemprox_cf
;
static
inline
wbemprox_cf
*
impl_from_IClassFactory
(
IClassFactory
*
iface
)
{
return
(
wbemprox_cf
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
wbemprox_cf
,
vtbl
)
);
return
CONTAINING_RECORD
(
iface
,
wbemprox_cf
,
IClassFactory_iface
);
}
static
HRESULT
WINAPI
wbemprox_cf_QueryInterface
(
IClassFactory
*
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
...
...
@@ -113,7 +113,7 @@ static const struct IClassFactoryVtbl wbemprox_cf_vtbl =
wbemprox_cf_LockServer
};
static
wbemprox_cf
wbem_locator_cf
=
{
&
wbemprox_cf_vtbl
,
WbemLocator_create
};
static
wbemprox_cf
wbem_locator_cf
=
{
{
&
wbemprox_cf_vtbl
}
,
WbemLocator_create
};
BOOL
WINAPI
DllMain
(
HINSTANCE
hinstDLL
,
DWORD
fdwReason
,
LPVOID
lpvReserved
)
{
...
...
@@ -141,7 +141,7 @@ HRESULT WINAPI DllGetClassObject( REFCLSID rclsid, REFIID iid, LPVOID *ppv )
if
(
IsEqualGUID
(
rclsid
,
&
CLSID_WbemLocator
))
{
cf
=
(
IClassFactory
*
)
&
wbem_locator_cf
.
vtbl
;
cf
=
&
wbem_locator_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