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
ab0cc29c
Commit
ab0cc29c
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 HTMLLocation.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
6152fe70
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
18 deletions
+19
-18
htmllocation.c
dlls/mshtml/htmllocation.c
+19
-18
No files found.
dlls/mshtml/htmllocation.c
View file @
ab0cc29c
...
...
@@ -63,26 +63,12 @@ static HRESULT WINAPI HTMLLocation_QueryInterface(IHTMLLocation *iface, REFIID r
{
HTMLLocation
*
This
=
impl_from_IHTMLLocation
(
iface
);
TRACE
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_mshtml_guid
(
riid
),
ppv
);
if
(
IsEqualGUID
(
&
IID_IUnknown
,
riid
))
{
*
ppv
=
&
This
->
IHTMLLocation_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_IHTMLLocation
,
riid
))
{
*
ppv
=
&
This
->
IHTMLLocation_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_IMarshal
,
riid
))
{
*
ppv
=
NULL
;
FIXME
(
"(%p)->(IID_IMarshal %p)
\n
"
,
This
,
ppv
);
return
E_NOINTERFACE
;
}
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
;
*
ppv
=
NULL
;
WARN
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_mshtml_guid
(
riid
),
ppv
);
return
E_NOINTERFACE
;
}
static
ULONG
WINAPI
HTMLLocation_AddRef
(
IHTMLLocation
*
iface
)
...
...
@@ -615,6 +601,20 @@ static inline HTMLLocation *impl_from_DispatchEx(DispatchEx *iface)
return
CONTAINING_RECORD
(
iface
,
HTMLLocation
,
dispex
);
}
static
void
*
HTMLLocation_query_interface
(
DispatchEx
*
dispex
,
REFIID
riid
)
{
HTMLLocation
*
This
=
impl_from_DispatchEx
(
dispex
);
if
(
IsEqualGUID
(
&
IID_IHTMLLocation
,
riid
))
return
&
This
->
IHTMLLocation_iface
;
if
(
IsEqualGUID
(
&
IID_IMarshal
,
riid
))
{
FIXME
(
"(%p)->(IID_IMarshal)
\n
"
,
This
);
return
NULL
;
}
return
NULL
;
}
static
void
HTMLLocation_traverse
(
DispatchEx
*
dispex
,
nsCycleCollectionTraversalCallback
*
cb
)
{
HTMLLocation
*
This
=
impl_from_DispatchEx
(
dispex
);
...
...
@@ -639,6 +639,7 @@ static void HTMLLocation_destructor(DispatchEx *dispex)
}
static
const
dispex_static_data_vtbl_t
HTMLLocation_dispex_vtbl
=
{
.
query_interface
=
HTMLLocation_query_interface
,
.
destructor
=
HTMLLocation_destructor
,
.
traverse
=
HTMLLocation_traverse
,
.
unlink
=
HTMLLocation_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