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
a1f54604
Commit
a1f54604
authored
Dec 20, 2010
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 21, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wmiutils: Use an iface instead of an vtbl pointer in status_code.
parent
cdf56820
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
statuscode.c
dlls/wmiutils/statuscode.c
+4
-4
No files found.
dlls/wmiutils/statuscode.c
View file @
a1f54604
...
...
@@ -37,13 +37,13 @@ WINE_DEFAULT_DEBUG_CHANNEL(wmiutils);
typedef
struct
status_code
{
const
IWbemStatusCodeTextVtbl
*
vtbl
;
IWbemStatusCodeText
IWbemStatusCodeText_iface
;
LONG
refs
;
}
status_code
;
static
inline
status_code
*
impl_from_IWbemStatusCodeText
(
IWbemStatusCodeText
*
iface
)
{
return
(
status_code
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
status_code
,
vtbl
)
);
return
CONTAINING_RECORD
(
iface
,
status_code
,
IWbemStatusCodeText_iface
);
}
static
ULONG
WINAPI
status_code_AddRef
(
...
...
@@ -143,10 +143,10 @@ HRESULT WbemStatusCodeText_create( IUnknown *pUnkOuter, LPVOID *ppObj )
sc
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
sc
)
);
if
(
!
sc
)
return
E_OUTOFMEMORY
;
sc
->
v
tbl
=
&
status_code_vtbl
;
sc
->
IWbemStatusCodeText_iface
.
lpV
tbl
=
&
status_code_vtbl
;
sc
->
refs
=
1
;
*
ppObj
=
&
sc
->
vtbl
;
*
ppObj
=
&
sc
->
IWbemStatusCodeText_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