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
67ea78c8
Commit
67ea78c8
authored
Sep 15, 2021
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Sep 16, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sxs: Don't assign a COM object to the 3rd param of QueryInterface.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2868e935
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
12 deletions
+8
-12
cache.c
dlls/sxs/cache.c
+4
-6
name.c
dlls/sxs/name.c
+4
-6
No files found.
dlls/sxs/cache.c
View file @
67ea78c8
...
...
@@ -57,19 +57,17 @@ static inline struct cache *impl_from_IAssemblyCache(IAssemblyCache *iface)
static
HRESULT
WINAPI
cache_QueryInterface
(
IAssemblyCache
*
iface
,
REFIID
riid
,
void
**
obj
)
void
**
ret_iface
)
{
struct
cache
*
cache
=
impl_from_IAssemblyCache
(
iface
);
TRACE
(
"%p, %s, %p
\n
"
,
cache
,
debugstr_guid
(
riid
),
obj
);
TRACE
(
"%p, %s, %p
\n
"
,
iface
,
debugstr_guid
(
riid
),
ret_iface
);
*
obj
=
NULL
;
*
ret_iface
=
NULL
;
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
)
||
IsEqualIID
(
riid
,
&
IID_IAssemblyCache
))
{
IAssemblyCache_AddRef
(
iface
);
*
obj
=
cach
e
;
*
ret_iface
=
ifac
e
;
return
S_OK
;
}
...
...
dlls/sxs/name.c
View file @
67ea78c8
...
...
@@ -56,19 +56,17 @@ static inline struct name *impl_from_IAssemblyName( IAssemblyName *iface )
static
HRESULT
WINAPI
name_QueryInterface
(
IAssemblyName
*
iface
,
REFIID
riid
,
void
**
obj
)
void
**
ret_iface
)
{
struct
name
*
name
=
impl_from_IAssemblyName
(
iface
);
TRACE
(
"%p, %s, %p
\n
"
,
name
,
debugstr_guid
(
riid
),
obj
);
TRACE
(
"%p, %s, %p
\n
"
,
iface
,
debugstr_guid
(
riid
),
ret_iface
);
*
obj
=
NULL
;
*
ret_iface
=
NULL
;
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
)
||
IsEqualIID
(
riid
,
&
IID_IAssemblyName
))
{
IAssemblyName_AddRef
(
iface
);
*
obj
=
nam
e
;
*
ret_iface
=
ifac
e
;
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