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
6be26997
Commit
6be26997
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 HTMLAttributeCollection.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
5a539155
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
16 deletions
+17
-16
htmlelem.c
dlls/mshtml/htmlelem.c
+17
-16
No files found.
dlls/mshtml/htmlelem.c
View file @
6be26997
...
@@ -8543,26 +8543,12 @@ static HRESULT WINAPI HTMLAttributeCollection_QueryInterface(IHTMLAttributeColle
...
@@ -8543,26 +8543,12 @@ static HRESULT WINAPI HTMLAttributeCollection_QueryInterface(IHTMLAttributeColle
{
{
HTMLAttributeCollection
*
This
=
impl_from_IHTMLAttributeCollection
(
iface
);
HTMLAttributeCollection
*
This
=
impl_from_IHTMLAttributeCollection
(
iface
);
TRACE
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_mshtml_guid
(
riid
),
ppv
);
if
(
dispex_query_interface
(
&
This
->
dispex
,
riid
,
ppv
))
if
(
IsEqualGUID
(
&
IID_IUnknown
,
riid
))
{
*
ppv
=
&
This
->
IHTMLAttributeCollection_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_IHTMLAttributeCollection
,
riid
))
{
*
ppv
=
&
This
->
IHTMLAttributeCollection_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_IHTMLAttributeCollection2
,
riid
))
{
*
ppv
=
&
This
->
IHTMLAttributeCollection2_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_IHTMLAttributeCollection3
,
riid
))
{
*
ppv
=
&
This
->
IHTMLAttributeCollection3_iface
;
}
else
if
(
dispex_query_interface
(
&
This
->
dispex
,
riid
,
ppv
))
{
return
*
ppv
?
S_OK
:
E_NOINTERFACE
;
return
*
ppv
?
S_OK
:
E_NOINTERFACE
;
}
else
{
*
ppv
=
NULL
;
*
ppv
=
NULL
;
WARN
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_mshtml_guid
(
riid
),
ppv
);
WARN
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_mshtml_guid
(
riid
),
ppv
);
return
E_NOINTERFACE
;
return
E_NOINTERFACE
;
}
IUnknown_AddRef
((
IUnknown
*
)
*
ppv
);
return
S_OK
;
}
}
static
ULONG
WINAPI
HTMLAttributeCollection_AddRef
(
IHTMLAttributeCollection
*
iface
)
static
ULONG
WINAPI
HTMLAttributeCollection_AddRef
(
IHTMLAttributeCollection
*
iface
)
...
@@ -8929,6 +8915,20 @@ static inline HTMLAttributeCollection *HTMLAttributeCollection_from_DispatchEx(D
...
@@ -8929,6 +8915,20 @@ static inline HTMLAttributeCollection *HTMLAttributeCollection_from_DispatchEx(D
return
CONTAINING_RECORD
(
iface
,
HTMLAttributeCollection
,
dispex
);
return
CONTAINING_RECORD
(
iface
,
HTMLAttributeCollection
,
dispex
);
}
}
static
void
*
HTMLAttributeCollection_query_interface
(
DispatchEx
*
dispex
,
REFIID
riid
)
{
HTMLAttributeCollection
*
This
=
HTMLAttributeCollection_from_DispatchEx
(
dispex
);
if
(
IsEqualGUID
(
&
IID_IHTMLAttributeCollection
,
riid
))
return
&
This
->
IHTMLAttributeCollection_iface
;
if
(
IsEqualGUID
(
&
IID_IHTMLAttributeCollection2
,
riid
))
return
&
This
->
IHTMLAttributeCollection2_iface
;
if
(
IsEqualGUID
(
&
IID_IHTMLAttributeCollection3
,
riid
))
return
&
This
->
IHTMLAttributeCollection3_iface
;
return
NULL
;
}
static
void
HTMLAttributeCollection_traverse
(
DispatchEx
*
dispex
,
nsCycleCollectionTraversalCallback
*
cb
)
static
void
HTMLAttributeCollection_traverse
(
DispatchEx
*
dispex
,
nsCycleCollectionTraversalCallback
*
cb
)
{
{
HTMLAttributeCollection
*
This
=
HTMLAttributeCollection_from_DispatchEx
(
dispex
);
HTMLAttributeCollection
*
This
=
HTMLAttributeCollection_from_DispatchEx
(
dispex
);
...
@@ -9022,6 +9022,7 @@ static HRESULT HTMLAttributeCollection_invoke(DispatchEx *dispex, DISPID id, LCI
...
@@ -9022,6 +9022,7 @@ static HRESULT HTMLAttributeCollection_invoke(DispatchEx *dispex, DISPID id, LCI
}
}
static
const
dispex_static_data_vtbl_t
HTMLAttributeCollection_dispex_vtbl
=
{
static
const
dispex_static_data_vtbl_t
HTMLAttributeCollection_dispex_vtbl
=
{
.
query_interface
=
HTMLAttributeCollection_query_interface
,
.
destructor
=
HTMLAttributeCollection_destructor
,
.
destructor
=
HTMLAttributeCollection_destructor
,
.
traverse
=
HTMLAttributeCollection_traverse
,
.
traverse
=
HTMLAttributeCollection_traverse
,
.
unlink
=
HTMLAttributeCollection_unlink
,
.
unlink
=
HTMLAttributeCollection_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