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
1dc86ebb
Commit
1dc86ebb
authored
Jul 22, 2010
by
Piotr Caban
Committed by
Alexandre Julliard
Jul 23, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
atl: Improved AtlInternalQueryInterface implementation.
parent
c1de11ee
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
atl_main.c
dlls/atl/atl_main.c
+4
-3
No files found.
dlls/atl/atl_main.c
View file @
1dc86ebb
...
@@ -259,7 +259,7 @@ HRESULT WINAPI AtlInternalQueryInterface(void* this, const _ATL_INTMAP_ENTRY* pE
...
@@ -259,7 +259,7 @@ HRESULT WINAPI AtlInternalQueryInterface(void* this, const _ATL_INTMAP_ENTRY* pE
TRACE
(
"Trying entry %i (%s %i %p)
\n
"
,
i
,
debugstr_guid
(
pEntries
[
i
].
piid
),
TRACE
(
"Trying entry %i (%s %i %p)
\n
"
,
i
,
debugstr_guid
(
pEntries
[
i
].
piid
),
pEntries
[
i
].
dw
,
pEntries
[
i
].
pFunc
);
pEntries
[
i
].
dw
,
pEntries
[
i
].
pFunc
);
if
(
pEntries
[
i
].
piid
&&
IsEqualGUID
(
iid
,
pEntries
[
i
].
piid
))
if
(
!
pEntries
[
i
].
piid
||
IsEqualGUID
(
iid
,
pEntries
[
i
].
piid
))
{
{
TRACE
(
"MATCH
\n
"
);
TRACE
(
"MATCH
\n
"
);
if
(
pEntries
[
i
].
pFunc
==
(
_ATL_CREATORARGFUNC
*
)
1
)
if
(
pEntries
[
i
].
pFunc
==
(
_ATL_CREATORARGFUNC
*
)
1
)
...
@@ -267,14 +267,15 @@ HRESULT WINAPI AtlInternalQueryInterface(void* this, const _ATL_INTMAP_ENTRY* pE
...
@@ -267,14 +267,15 @@ HRESULT WINAPI AtlInternalQueryInterface(void* this, const _ATL_INTMAP_ENTRY* pE
TRACE
(
"Offset
\n
"
);
TRACE
(
"Offset
\n
"
);
*
ppvObject
=
((
LPSTR
)
this
+
pEntries
[
i
].
dw
);
*
ppvObject
=
((
LPSTR
)
this
+
pEntries
[
i
].
dw
);
IUnknown_AddRef
((
IUnknown
*
)
*
ppvObject
);
IUnknown_AddRef
((
IUnknown
*
)
*
ppvObject
);
r
c
=
S_OK
;
r
eturn
S_OK
;
}
}
else
else
{
{
TRACE
(
"Function
\n
"
);
TRACE
(
"Function
\n
"
);
rc
=
pEntries
[
i
].
pFunc
(
this
,
iid
,
ppvObject
,
pEntries
[
i
].
dw
);
rc
=
pEntries
[
i
].
pFunc
(
this
,
iid
,
ppvObject
,
pEntries
[
i
].
dw
);
if
(
rc
==
S_OK
||
pEntries
[
i
].
piid
)
return
rc
;
}
}
break
;
}
}
i
++
;
i
++
;
}
}
...
...
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