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
3af74c5e
Commit
3af74c5e
authored
Apr 25, 2007
by
Rob Shearman
Committed by
Alexandre Julliard
Apr 25, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
atl: Use the first entry in the object map in AtlInternalQueryInterface when IUnknown is requested.
parent
5fcc5d3f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
atl_main.c
dlls/atl/atl_main.c
+4
-4
No files found.
dlls/atl/atl_main.c
View file @
3af74c5e
...
...
@@ -213,19 +213,19 @@ HRESULT WINAPI AtlInternalQueryInterface(void* this, const _ATL_INTMAP_ENTRY* pE
{
int
i
=
0
;
HRESULT
rc
=
E_NOINTERFACE
;
TRACE
(
"(%p, %p, %
p, %p)
\n
"
,
this
,
pEntries
,
iid
,
ppvObject
);
TRACE
(
"(%p, %p, %
s, %p)
\n
"
,
this
,
pEntries
,
debugstr_guid
(
iid
)
,
ppvObject
);
if
(
IsEqualGUID
(
iid
,
&
IID_IUnknown
))
{
TRACE
(
"Returning IUnknown
\n
"
);
*
ppvObject
=
this
;
IUnknown_AddRef
((
IUnknown
*
)
this
);
*
ppvObject
=
((
LPSTR
)
this
+
pEntries
[
0
].
dw
)
;
IUnknown_AddRef
((
IUnknown
*
)
*
ppvObject
);
return
S_OK
;
}
while
(
pEntries
[
i
].
pFunc
!=
0
)
{
TRACE
(
"Trying entry %i (%
p %i %p)
\n
"
,
i
,
pEntries
[
i
].
piid
,
TRACE
(
"Trying entry %i (%
s %i %p)
\n
"
,
i
,
debugstr_guid
(
pEntries
[
i
].
piid
)
,
pEntries
[
i
].
dw
,
pEntries
[
i
].
pFunc
);
if
(
pEntries
[
i
].
piid
&&
IsEqualGUID
(
iid
,
pEntries
[
i
].
piid
))
...
...
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