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
51479d56
Commit
51479d56
authored
Mar 16, 2021
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 16, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Initialize HTMLFiltersCollection object with compat mode.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
fe5860e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
13 deletions
+15
-13
htmlelem.c
dlls/mshtml/htmlelem.c
+15
-13
No files found.
dlls/mshtml/htmlelem.c
View file @
51479d56
...
...
@@ -230,7 +230,7 @@ static inline HTMLFiltersCollection *impl_from_IHTMLFiltersCollection(IHTMLFilte
return
CONTAINING_RECORD
(
iface
,
HTMLFiltersCollection
,
IHTMLFiltersCollection_iface
);
}
static
IHTMLFiltersCollection
*
HTMLFiltersCollection_Create
(
void
);
static
HRESULT
create_filters_collection
(
compat_mode_t
compat_mode
,
IHTMLFiltersCollection
**
ret
);
static
inline
HTMLElement
*
impl_from_IHTMLElement
(
IHTMLElement
*
iface
)
{
...
...
@@ -2011,18 +2011,16 @@ static HRESULT WINAPI HTMLElement_click(IHTMLElement *iface)
return
S_OK
;
}
static
HRESULT
WINAPI
HTMLElement_get_filters
(
IHTMLElement
*
iface
,
IHTMLFiltersCollection
**
p
)
static
HRESULT
WINAPI
HTMLElement_get_filters
(
IHTMLElement
*
iface
,
IHTMLFiltersCollection
**
p
)
{
HTMLElement
*
This
=
impl_from_IHTMLElement
(
iface
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
if
(
!
p
)
return
E_POINTER
;
*
p
=
HTMLFiltersCollection_Create
();
return
S_OK
;
return
create_filters_collection
(
dispex_compat_mode
(
&
This
->
node
.
event_target
.
dispex
),
p
);
}
static
HRESULT
WINAPI
HTMLElement_put_ondragstart
(
IHTMLElement
*
iface
,
VARIANT
v
)
...
...
@@ -6606,17 +6604,21 @@ static dispex_static_data_t HTMLFiltersCollection_dispex = {
HTMLFiltersCollection_iface_tids
};
static
IHTMLFiltersCollection
*
HTMLFiltersCollection_Create
(
void
)
static
HRESULT
create_filters_collection
(
compat_mode_t
compat_mode
,
IHTMLFiltersCollection
**
ret
)
{
HTMLFiltersCollection
*
ret
=
heap_alloc
(
sizeof
(
HTMLFiltersCollection
))
;
HTMLFiltersCollection
*
collection
;
ret
->
IHTMLFiltersCollection_iface
.
lpVtbl
=
&
HTMLFiltersCollectionVtbl
;
ret
->
ref
=
1
;
if
(
!
(
collection
=
heap_alloc
(
sizeof
(
HTMLFiltersCollection
))))
return
E_OUTOFMEMORY
;
collection
->
IHTMLFiltersCollection_iface
.
lpVtbl
=
&
HTMLFiltersCollectionVtbl
;
collection
->
ref
=
1
;
init_dispex
(
&
ret
->
dispex
,
(
IUnknown
*
)
&
ret
->
IHTMLFiltersCollection_iface
,
&
HTMLFiltersCollection_dispex
);
init_dispex
_with_compat_mode
(
&
collection
->
dispex
,
(
IUnknown
*
)
&
collection
->
IHTMLFiltersCollection_iface
,
&
HTMLFiltersCollection_dispex
,
compat_mode
);
return
&
ret
->
IHTMLFiltersCollection_iface
;
*
ret
=
&
collection
->
IHTMLFiltersCollection_iface
;
return
S_OK
;
}
/* interface IHTMLAttributeCollection */
...
...
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