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
1913ff3a
Commit
1913ff3a
authored
Mar 08, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 09, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Don't assume that HTMLWindow_Create sets ret val before succeeding.
parent
2ca58402
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
htmldoc.c
dlls/mshtml/htmldoc.c
+1
-1
htmlwindow.c
dlls/mshtml/htmlwindow.c
+1
-1
No files found.
dlls/mshtml/htmldoc.c
View file @
1913ff3a
...
...
@@ -2019,7 +2019,7 @@ HRESULT create_doc_from_nsdoc(nsIDOMHTMLDocument *nsdoc, HTMLDocumentObj *doc_ob
if
(
!
doc
)
return
E_OUTOFMEMORY
;
if
(
window
==
doc_obj
->
basedoc
.
window
)
if
(
!
doc_obj
->
basedoc
.
window
||
window
==
doc_obj
->
basedoc
.
window
)
doc
->
basedoc
.
cp_container
.
forward_container
=
&
doc_obj
->
basedoc
.
cp_container
;
nsIDOMHTMLDocument_AddRef
(
nsdoc
);
...
...
dlls/mshtml/htmlwindow.c
View file @
1913ff3a
...
...
@@ -2247,7 +2247,6 @@ HRESULT HTMLWindow_Create(HTMLDocumentObj *doc_obj, nsIDOMWindow *nswindow, HTML
list_init
(
&
window
->
script_hosts
);
window
->
task_magic
=
get_task_target_magic
();
*
ret
=
window
;
update_window_doc
(
window
);
list_init
(
&
window
->
children
);
...
...
@@ -2260,6 +2259,7 @@ HRESULT HTMLWindow_Create(HTMLDocumentObj *doc_obj, nsIDOMWindow *nswindow, HTML
list_add_tail
(
&
parent
->
children
,
&
window
->
sibling_entry
);
}
*
ret
=
window
;
return
S_OK
;
}
...
...
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