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
5a539155
Commit
5a539155
authored
Sep 08, 2023
by
Gabriel Ivăncescu
Committed by
Alexandre Julliard
Sep 08, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Use query_interface in the dispex vtbl for HTMLFiltersCollection.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
f57dd5ff
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
htmlelem.c
dlls/mshtml/htmlelem.c
+14
-14
No files found.
dlls/mshtml/htmlelem.c
View file @
5a539155
...
...
@@ -8093,23 +8093,12 @@ static HRESULT WINAPI HTMLFiltersCollection_QueryInterface(IHTMLFiltersCollectio
{
HTMLFiltersCollection
*
This
=
impl_from_IHTMLFiltersCollection
(
iface
);
TRACE
(
"%p %s %p
\n
"
,
This
,
debugstr_mshtml_guid
(
riid
),
ppv
);
if
(
IsEqualGUID
(
&
IID_IUnknown
,
riid
))
{
*
ppv
=
&
This
->
IHTMLFiltersCollection_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_IHTMLFiltersCollection
,
riid
))
{
TRACE
(
"(%p)->(IID_IHTMLFiltersCollection %p)
\n
"
,
This
,
ppv
);
*
ppv
=
&
This
->
IHTMLFiltersCollection_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
{
*
ppv
=
NULL
;
FIXME
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_mshtml_guid
(
riid
),
ppv
);
WARN
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_mshtml_guid
(
riid
),
ppv
);
return
E_NOINTERFACE
;
}
IUnknown_AddRef
((
IUnknown
*
)
*
ppv
);
return
S_OK
;
}
static
ULONG
WINAPI
HTMLFiltersCollection_AddRef
(
IHTMLFiltersCollection
*
iface
)
...
...
@@ -8208,6 +8197,16 @@ static inline HTMLFiltersCollection *HTMLFiltersCollection_from_DispatchEx(Dispa
return
CONTAINING_RECORD
(
iface
,
HTMLFiltersCollection
,
dispex
);
}
static
void
*
HTMLFiltersCollection_query_interface
(
DispatchEx
*
dispex
,
REFIID
riid
)
{
HTMLFiltersCollection
*
This
=
HTMLFiltersCollection_from_DispatchEx
(
dispex
);
if
(
IsEqualGUID
(
&
IID_IHTMLFiltersCollection
,
riid
))
return
&
This
->
IHTMLFiltersCollection_iface
;
return
NULL
;
}
static
void
HTMLFiltersCollection_destructor
(
DispatchEx
*
dispex
)
{
HTMLFiltersCollection
*
This
=
HTMLFiltersCollection_from_DispatchEx
(
dispex
);
...
...
@@ -8253,6 +8252,7 @@ static HRESULT HTMLFiltersCollection_invoke(DispatchEx *dispex, DISPID id, LCID
}
static
const
dispex_static_data_vtbl_t
HTMLFiltersCollection_dispex_vtbl
=
{
.
query_interface
=
HTMLFiltersCollection_query_interface
,
.
destructor
=
HTMLFiltersCollection_destructor
,
.
get_dispid
=
HTMLFiltersCollection_get_dispid
,
.
get_name
=
HTMLFiltersCollection_get_name
,
...
...
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