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
6192c050
Commit
6192c050
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 MutationObserver.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
8985cf15
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
11 deletions
+14
-11
mutation.c
dlls/mshtml/mutation.c
+14
-11
No files found.
dlls/mshtml/mutation.c
View file @
6192c050
...
...
@@ -1093,20 +1093,12 @@ static HRESULT WINAPI MutationObserver_QueryInterface(IWineMSHTMLMutationObserve
{
struct
mutation_observer
*
This
=
impl_from_IWineMSHTMLMutationObserver
(
iface
);
TRACE
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_mshtml_guid
(
riid
),
ppv
);
if
(
IsEqualGUID
(
&
IID_IUnknown
,
riid
)
||
IsEqualGUID
(
&
IID_IWineMSHTMLMutationObserver
,
riid
))
{
*
ppv
=
&
This
->
IWineMSHTMLMutationObserver_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
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_mshtml_guid
(
riid
),
ppv
);
*
ppv
=
NULL
;
WARN
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_mshtml_guid
(
riid
),
ppv
);
return
E_NOINTERFACE
;
}
IUnknown_AddRef
((
IUnknown
*
)
*
ppv
);
return
S_OK
;
}
static
ULONG
WINAPI
MutationObserver_AddRef
(
IWineMSHTMLMutationObserver
*
iface
)
...
...
@@ -1211,6 +1203,16 @@ static inline struct mutation_observer *mutation_observer_from_DispatchEx(Dispat
return
CONTAINING_RECORD
(
iface
,
struct
mutation_observer
,
dispex
);
}
static
void
*
mutation_observer_query_interface
(
DispatchEx
*
dispex
,
REFIID
riid
)
{
struct
mutation_observer
*
This
=
mutation_observer_from_DispatchEx
(
dispex
);
if
(
IsEqualGUID
(
&
IID_IWineMSHTMLMutationObserver
,
riid
))
return
&
This
->
IWineMSHTMLMutationObserver_iface
;
return
NULL
;
}
static
void
mutation_observer_traverse
(
DispatchEx
*
dispex
,
nsCycleCollectionTraversalCallback
*
cb
)
{
struct
mutation_observer
*
This
=
mutation_observer_from_DispatchEx
(
dispex
);
...
...
@@ -1231,6 +1233,7 @@ static void mutation_observer_destructor(DispatchEx *dispex)
}
static
const
dispex_static_data_vtbl_t
mutation_observer_dispex_vtbl
=
{
.
query_interface
=
mutation_observer_query_interface
,
.
destructor
=
mutation_observer_destructor
,
.
traverse
=
mutation_observer_traverse
,
.
unlink
=
mutation_observer_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