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
50da8767
Commit
50da8767
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 HTMLScreen.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
cff43f8a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
+13
-12
omnavigator.c
dlls/mshtml/omnavigator.c
+13
-12
No files found.
dlls/mshtml/omnavigator.c
View file @
50da8767
...
...
@@ -384,22 +384,12 @@ static HRESULT WINAPI HTMLScreen_QueryInterface(IHTMLScreen *iface, REFIID riid,
{
HTMLScreen
*
This
=
impl_from_IHTMLScreen
(
iface
);
TRACE
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_mshtml_guid
(
riid
),
ppv
);
if
(
IsEqualGUID
(
&
IID_IUnknown
,
riid
))
{
*
ppv
=
&
This
->
IHTMLScreen_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_IHTMLScreen
,
riid
))
{
*
ppv
=
&
This
->
IHTMLScreen_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
;
WARN
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_mshtml_guid
(
riid
),
ppv
);
return
E_NOINTERFACE
;
}
IUnknown_AddRef
((
IUnknown
*
)
*
ppv
);
return
S_OK
;
}
static
ULONG
WINAPI
HTMLScreen_AddRef
(
IHTMLScreen
*
iface
)
...
...
@@ -572,6 +562,16 @@ static inline HTMLScreen *HTMLScreen_from_DispatchEx(DispatchEx *iface)
return
CONTAINING_RECORD
(
iface
,
HTMLScreen
,
dispex
);
}
static
void
*
HTMLScreen_query_interface
(
DispatchEx
*
dispex
,
REFIID
riid
)
{
HTMLScreen
*
This
=
HTMLScreen_from_DispatchEx
(
dispex
);
if
(
IsEqualGUID
(
&
IID_IHTMLScreen
,
riid
))
return
&
This
->
IHTMLScreen_iface
;
return
NULL
;
}
static
void
HTMLScreen_destructor
(
DispatchEx
*
dispex
)
{
HTMLScreen
*
This
=
HTMLScreen_from_DispatchEx
(
dispex
);
...
...
@@ -579,6 +579,7 @@ static void HTMLScreen_destructor(DispatchEx *dispex)
}
static
const
dispex_static_data_vtbl_t
HTMLScreen_dispex_vtbl
=
{
.
query_interface
=
HTMLScreen_query_interface
,
.
destructor
=
HTMLScreen_destructor
,
};
...
...
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