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
4d49d8ca
Commit
4d49d8ca
authored
Feb 21, 2005
by
Mike Hearn
Committed by
Alexandre Julliard
Feb 21, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid infinite loop when doing a typelib marshalled
IUnknown::QueryInterface by only doing an extra QI if requested IID is not equal to marshalled IID.
parent
80380eaa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
marshal.c
dlls/ole32/marshal.c
+13
-5
No files found.
dlls/ole32/marshal.c
View file @
4d49d8ca
...
...
@@ -1416,11 +1416,19 @@ HRESULT WINAPI CoUnmarshalInterface(IStream *pStream, REFIID riid, LPVOID *ppv)
if
(
hr
==
S_OK
)
{
hr
=
IUnknown_QueryInterface
(
object
,
&
iid
,
ppv
);
if
(
hr
)
ERR
(
"Couldn't query for interface %s, hr = 0x%08lx
\n
"
,
debugstr_guid
(
riid
),
hr
);
IUnknown_Release
(
object
);
if
(
!
IsEqualIID
(
riid
,
&
iid
))
{
TRACE
(
"requested interface != marshalled interface, additional QI needed
\n
"
);
hr
=
IUnknown_QueryInterface
(
object
,
&
iid
,
ppv
);
if
(
hr
)
ERR
(
"Couldn't query for interface %s, hr = 0x%08lx
\n
"
,
debugstr_guid
(
riid
),
hr
);
IUnknown_Release
(
object
);
}
else
{
*
ppv
=
object
;
}
}
IMarshal_Release
(
pMarshal
);
...
...
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