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
e4b30b46
Commit
e4b30b46
authored
May 09, 2023
by
Michael Stefaniuc
Committed by
Alexandre Julliard
May 09, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dxdiagn: Avoid assigning COM objects to interface variables.
parent
c11ed566
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
container.c
dlls/dxdiagn/container.c
+1
-1
provider.c
dlls/dxdiagn/provider.c
+1
-1
No files found.
dlls/dxdiagn/container.c
View file @
e4b30b46
...
@@ -42,7 +42,7 @@ static HRESULT WINAPI IDxDiagContainerImpl_QueryInterface(IDxDiagContainer *ifac
...
@@ -42,7 +42,7 @@ static HRESULT WINAPI IDxDiagContainerImpl_QueryInterface(IDxDiagContainer *ifac
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
||
IsEqualGUID
(
riid
,
&
IID_IDxDiagContainer
))
{
||
IsEqualGUID
(
riid
,
&
IID_IDxDiagContainer
))
{
IUnknown_AddRef
(
iface
);
IUnknown_AddRef
(
iface
);
*
ppobj
=
This
;
*
ppobj
=
&
This
->
IDxDiagContainer_iface
;
return
S_OK
;
return
S_OK
;
}
}
...
...
dlls/dxdiagn/provider.c
View file @
e4b30b46
...
@@ -70,7 +70,7 @@ static HRESULT WINAPI IDxDiagProviderImpl_QueryInterface(IDxDiagProvider *iface,
...
@@ -70,7 +70,7 @@ static HRESULT WINAPI IDxDiagProviderImpl_QueryInterface(IDxDiagProvider *iface,
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
||
IsEqualGUID
(
riid
,
&
IID_IDxDiagProvider
))
{
||
IsEqualGUID
(
riid
,
&
IID_IDxDiagProvider
))
{
IUnknown_AddRef
(
iface
);
IUnknown_AddRef
(
iface
);
*
ppobj
=
This
;
*
ppobj
=
&
This
->
IDxDiagProvider_iface
;
return
S_OK
;
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