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
e75635a7
Commit
e75635a7
authored
Dec 05, 2010
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 05, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wbemprox: Use an iface instead of a vtbl pointer in wbem_locator.
parent
d2e90cdd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
wbemlocator.c
dlls/wbemprox/wbemlocator.c
+4
-4
No files found.
dlls/wbemprox/wbemlocator.c
View file @
e75635a7
...
...
@@ -35,13 +35,13 @@ WINE_DEFAULT_DEBUG_CHANNEL(wbemprox);
typedef
struct
{
const
IWbemLocatorVtbl
*
vtbl
;
IWbemLocator
IWbemLocator_iface
;
LONG
refs
;
}
wbem_locator
;
static
inline
wbem_locator
*
impl_from_IWbemLocator
(
IWbemLocator
*
iface
)
{
return
(
wbem_locator
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
wbem_locator
,
vtbl
)
);
return
CONTAINING_RECORD
(
iface
,
wbem_locator
,
IWbemLocator_iface
);
}
static
ULONG
WINAPI
wbem_locator_AddRef
(
...
...
@@ -120,10 +120,10 @@ HRESULT WbemLocator_create( IUnknown *pUnkOuter, LPVOID *ppObj )
wl
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
wl
)
);
if
(
!
wl
)
return
E_OUTOFMEMORY
;
wl
->
v
tbl
=
&
wbem_locator_vtbl
;
wl
->
IWbemLocator_iface
.
lpV
tbl
=
&
wbem_locator_vtbl
;
wl
->
refs
=
1
;
*
ppObj
=
&
wl
->
vtbl
;
*
ppObj
=
&
wl
->
IWbemLocator_iface
;
TRACE
(
"returning iface %p
\n
"
,
*
ppObj
);
return
S_OK
;
...
...
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