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
0542346d
Commit
0542346d
authored
May 09, 2023
by
Michael Stefaniuc
Committed by
Alexandre Julliard
May 10, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wbemprox: Avoid assigning COM objects to interface variables.
parent
a6344997
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
class.c
dlls/wbemprox/class.c
+2
-2
qualifier.c
dlls/wbemprox/qualifier.c
+1
-1
services.c
dlls/wbemprox/services.c
+2
-2
No files found.
dlls/wbemprox/class.c
View file @
0542346d
...
@@ -78,7 +78,7 @@ static HRESULT WINAPI enum_class_object_QueryInterface(
...
@@ -78,7 +78,7 @@ static HRESULT WINAPI enum_class_object_QueryInterface(
if
(
IsEqualGUID
(
riid
,
&
IID_IEnumWbemClassObject
)
||
if
(
IsEqualGUID
(
riid
,
&
IID_IEnumWbemClassObject
)
||
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
)
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
)
{
{
*
ppvObject
=
ec
;
*
ppvObject
=
&
ec
->
IEnumWbemClassObject_iface
;
}
}
else
if
(
IsEqualGUID
(
riid
,
&
IID_IClientSecurity
)
)
else
if
(
IsEqualGUID
(
riid
,
&
IID_IClientSecurity
)
)
{
{
...
@@ -324,7 +324,7 @@ static HRESULT WINAPI class_object_QueryInterface(
...
@@ -324,7 +324,7 @@ static HRESULT WINAPI class_object_QueryInterface(
if
(
IsEqualGUID
(
riid
,
&
IID_IWbemClassObject
)
||
if
(
IsEqualGUID
(
riid
,
&
IID_IWbemClassObject
)
||
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
)
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
)
{
{
*
ppvObject
=
co
;
*
ppvObject
=
&
co
->
IWbemClassObject_iface
;
}
}
else
if
(
IsEqualGUID
(
riid
,
&
IID_IClientSecurity
))
else
if
(
IsEqualGUID
(
riid
,
&
IID_IClientSecurity
))
{
{
...
...
dlls/wbemprox/qualifier.c
View file @
0542346d
...
@@ -79,7 +79,7 @@ static HRESULT WINAPI qualifier_set_QueryInterface(
...
@@ -79,7 +79,7 @@ static HRESULT WINAPI qualifier_set_QueryInterface(
if
(
IsEqualGUID
(
riid
,
&
IID_IWbemQualifierSet
)
||
if
(
IsEqualGUID
(
riid
,
&
IID_IWbemQualifierSet
)
||
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
)
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
)
{
{
*
ppvObject
=
set
;
*
ppvObject
=
&
set
->
IWbemQualifierSet_iface
;
}
}
else
else
{
{
...
...
dlls/wbemprox/services.c
View file @
0542346d
...
@@ -52,7 +52,7 @@ static HRESULT WINAPI client_security_QueryInterface(
...
@@ -52,7 +52,7 @@ static HRESULT WINAPI client_security_QueryInterface(
if
(
IsEqualGUID
(
riid
,
&
IID_IClientSecurity
)
||
if
(
IsEqualGUID
(
riid
,
&
IID_IClientSecurity
)
||
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
)
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
)
{
{
*
ppvObject
=
cs
;
*
ppvObject
=
&
cs
->
IClientSecurity_iface
;
}
}
else
else
{
{
...
@@ -264,7 +264,7 @@ static HRESULT WINAPI wbem_services_QueryInterface(
...
@@ -264,7 +264,7 @@ static HRESULT WINAPI wbem_services_QueryInterface(
if
(
IsEqualGUID
(
riid
,
&
IID_IWbemServices
)
||
if
(
IsEqualGUID
(
riid
,
&
IID_IWbemServices
)
||
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
)
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
)
{
{
*
ppvObject
=
ws
;
*
ppvObject
=
&
ws
->
IWbemServices_iface
;
}
}
else
if
(
IsEqualGUID
(
riid
,
&
IID_IClientSecurity
)
)
else
if
(
IsEqualGUID
(
riid
,
&
IID_IClientSecurity
)
)
{
{
...
...
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