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
cff43f8a
Commit
cff43f8a
authored
Sep 11, 2023
by
Gabriel Ivăncescu
Committed by
Alexandre Julliard
Sep 11, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Use query_interface in the dispex vtbl for HTMLDOMImplementation.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
d8200e04
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
14 deletions
+17
-14
omnavigator.c
dlls/mshtml/omnavigator.c
+17
-14
No files found.
dlls/mshtml/omnavigator.c
View file @
cff43f8a
...
...
@@ -60,22 +60,12 @@ static HRESULT WINAPI HTMLDOMImplementation_QueryInterface(IHTMLDOMImplementatio
{
HTMLDOMImplementation
*
This
=
impl_from_IHTMLDOMImplementation
(
iface
);
TRACE
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_mshtml_guid
(
riid
),
ppv
);
if
(
IsEqualGUID
(
&
IID_IUnknown
,
riid
)
||
IsEqualGUID
(
&
IID_IHTMLDOMImplementation
,
riid
))
{
*
ppv
=
&
This
->
IHTMLDOMImplementation_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_IHTMLDOMImplementation2
,
riid
))
{
*
ppv
=
&
This
->
IHTMLDOMImplementation2_iface
;
}
else
if
(
dispex_query_interface
(
&
This
->
dispex
,
riid
,
ppv
))
{
if
(
dispex_query_interface
(
&
This
->
dispex
,
riid
,
ppv
))
return
*
ppv
?
S_OK
:
E_NOINTERFACE
;
}
else
{
WARN
(
"Unsupported interface %s
\n
"
,
debugstr_mshtml_guid
(
riid
));
*
ppv
=
NULL
;
return
E_NOINTERFACE
;
}
IUnknown_AddRef
((
IUnknown
*
)
*
ppv
);
return
S_OK
;
*
ppv
=
NULL
;
WARN
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_mshtml_guid
(
riid
),
ppv
);
return
E_NOINTERFACE
;
}
static
ULONG
WINAPI
HTMLDOMImplementation_AddRef
(
IHTMLDOMImplementation
*
iface
)
...
...
@@ -287,6 +277,18 @@ static inline HTMLDOMImplementation *HTMLDOMImplementation_from_DispatchEx(Dispa
return
CONTAINING_RECORD
(
iface
,
HTMLDOMImplementation
,
dispex
);
}
static
void
*
HTMLDOMImplementation_query_interface
(
DispatchEx
*
dispex
,
REFIID
riid
)
{
HTMLDOMImplementation
*
This
=
HTMLDOMImplementation_from_DispatchEx
(
dispex
);
if
(
IsEqualGUID
(
&
IID_IHTMLDOMImplementation
,
riid
))
return
&
This
->
IHTMLDOMImplementation_iface
;
if
(
IsEqualGUID
(
&
IID_IHTMLDOMImplementation2
,
riid
))
return
&
This
->
IHTMLDOMImplementation2_iface
;
return
NULL
;
}
static
void
HTMLDOMImplementation_traverse
(
DispatchEx
*
dispex
,
nsCycleCollectionTraversalCallback
*
cb
)
{
HTMLDOMImplementation
*
This
=
HTMLDOMImplementation_from_DispatchEx
(
dispex
);
...
...
@@ -308,6 +310,7 @@ static void HTMLDOMImplementation_destructor(DispatchEx *dispex)
}
static
const
dispex_static_data_vtbl_t
HTMLDOMImplementation_dispex_vtbl
=
{
.
query_interface
=
HTMLDOMImplementation_query_interface
,
.
destructor
=
HTMLDOMImplementation_destructor
,
.
traverse
=
HTMLDOMImplementation_traverse
,
.
unlink
=
HTMLDOMImplementation_unlink
...
...
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