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
0e6370bd
Commit
0e6370bd
authored
Sep 12, 2023
by
Gabriel Ivăncescu
Committed by
Alexandre Julliard
Sep 12, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Use query_interface in the dispex vtbl for MediaQueryList.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
431b89ea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
11 deletions
+15
-11
omnavigator.c
dlls/mshtml/omnavigator.c
+15
-11
No files found.
dlls/mshtml/omnavigator.c
View file @
0e6370bd
...
...
@@ -2878,19 +2878,12 @@ static HRESULT WINAPI media_query_list_QueryInterface(IWineMSHTMLMediaQueryList
{
struct
media_query_list
*
media_query_list
=
impl_from_IWineMSHTMLMediaQueryList
(
iface
);
TRACE
(
"(%p)->(%s %p)
\n
"
,
media_query_list
,
debugstr_mshtml_guid
(
riid
),
ppv
);
if
(
IsEqualGUID
(
&
IID_IUnknown
,
riid
)
||
IsEqualGUID
(
&
IID_IWineMSHTMLMediaQueryList
,
riid
))
{
*
ppv
=
&
media_query_list
->
IWineMSHTMLMediaQueryList_iface
;
}
else
if
(
dispex_query_interface
(
&
media_query_list
->
dispex
,
riid
,
ppv
))
{
if
(
dispex_query_interface
(
&
media_query_list
->
dispex
,
riid
,
ppv
))
return
*
ppv
?
S_OK
:
E_NOINTERFACE
;
}
else
{
*
ppv
=
NULL
;
return
E_NOINTERFACE
;
}
IUnknown_AddRef
((
IUnknown
*
)
*
ppv
);
return
S_OK
;
*
ppv
=
NULL
;
WARN
(
"(%p)->(%s %p)
\n
"
,
media_query_list
,
debugstr_mshtml_guid
(
riid
),
ppv
);
return
E_NOINTERFACE
;
}
static
ULONG
WINAPI
media_query_list_AddRef
(
IWineMSHTMLMediaQueryList
*
iface
)
...
...
@@ -3134,6 +3127,16 @@ static inline struct media_query_list *media_query_list_from_DispatchEx(Dispatch
return
CONTAINING_RECORD
(
iface
,
struct
media_query_list
,
dispex
);
}
static
void
*
media_query_list_query_interface
(
DispatchEx
*
dispex
,
REFIID
riid
)
{
struct
media_query_list
*
media_query_list
=
media_query_list_from_DispatchEx
(
dispex
);
if
(
IsEqualGUID
(
&
IID_IWineMSHTMLMediaQueryList
,
riid
))
return
&
media_query_list
->
IWineMSHTMLMediaQueryList_iface
;
return
NULL
;
}
static
void
media_query_list_traverse
(
DispatchEx
*
dispex
,
nsCycleCollectionTraversalCallback
*
cb
)
{
struct
media_query_list
*
media_query_list
=
media_query_list_from_DispatchEx
(
dispex
);
...
...
@@ -3167,6 +3170,7 @@ static void media_query_list_destructor(DispatchEx *dispex)
}
static
const
dispex_static_data_vtbl_t
media_query_list_dispex_vtbl
=
{
.
query_interface
=
media_query_list_query_interface
,
.
destructor
=
media_query_list_destructor
,
.
traverse
=
media_query_list_traverse
,
.
unlink
=
media_query_list_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