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
b2c65c29
Commit
b2c65c29
authored
Oct 01, 2014
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 01, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Don't assume that nsIDOMHTML*Element interfaces inherit from…
mshtml: Don't assume that nsIDOMHTML*Element interfaces inherit from nsIDOMHTMLElement in htmlscript.c.
parent
256204d8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
htmlscript.c
dlls/mshtml/htmlscript.c
+9
-3
No files found.
dlls/mshtml/htmlscript.c
View file @
b2c65c29
...
...
@@ -136,7 +136,7 @@ static HRESULT WINAPI HTMLScriptElement_put_src(IHTMLScriptElement *iface, BSTR
return
S_OK
;
}
nsres
=
nsIDOMHTML
ScriptElement_GetParentNode
(
This
->
nsscript
,
&
parent
);
nsres
=
nsIDOMHTML
Element_GetParentNode
(
This
->
element
.
nselem
,
&
parent
);
if
(
NS_FAILED
(
nsres
)
||
!
parent
)
{
TRACE
(
"No parent, not executing
\n
"
);
This
->
parse_on_bind
=
TRUE
;
...
...
@@ -214,7 +214,7 @@ static HRESULT WINAPI HTMLScriptElement_put_text(IHTMLScriptElement *iface, BSTR
return
E_FAIL
;
}
nsres
=
nsIDOMHTML
ScriptElement_GetParentNode
(
This
->
nsscript
,
&
parent
);
nsres
=
nsIDOMHTML
Element_GetParentNode
(
This
->
element
.
nselem
,
&
parent
);
if
(
NS_FAILED
(
nsres
)
||
!
parent
)
{
TRACE
(
"No parent, not executing
\n
"
);
This
->
parse_on_bind
=
TRUE
;
...
...
@@ -433,10 +433,16 @@ static const NodeImplVtbl HTMLScriptElementImplVtbl = {
HRESULT
script_elem_from_nsscript
(
HTMLDocumentNode
*
doc
,
nsIDOMHTMLScriptElement
*
nsscript
,
HTMLScriptElement
**
ret
)
{
nsIDOMNode
*
nsnode
;
HTMLDOMNode
*
node
;
nsresult
nsres
;
HRESULT
hres
;
hres
=
get_node
(
doc
,
(
nsIDOMNode
*
)
nsscript
,
TRUE
,
&
node
);
nsres
=
nsIDOMHTMLScriptElement_QueryInterface
(
nsscript
,
&
IID_nsIDOMNode
,
(
void
**
)
&
nsnode
);
assert
(
nsres
==
NS_OK
);
hres
=
get_node
(
doc
,
nsnode
,
TRUE
,
&
node
);
nsIDOMNode_Release
(
nsnode
);
if
(
FAILED
(
hres
))
return
hres
;
...
...
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