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
2dcb37e5
Commit
2dcb37e5
authored
Sep 03, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 03, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Use nsIDOMWindowCollection::NamedItem in get_window_by_name.
parent
a5354174
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
htmlwindow.c
dlls/mshtml/htmlwindow.c
+15
-1
No files found.
dlls/mshtml/htmlwindow.c
View file @
2dcb37e5
...
...
@@ -360,6 +360,8 @@ HRESULT get_frame_by_name(HTMLOuterWindow *This, const WCHAR *name, BOOL deep, H
{
nsIDOMWindowCollection
*
nsframes
;
HTMLOuterWindow
*
window
=
NULL
;
nsIDOMWindow
*
nswindow
;
nsAString
name_str
;
PRUint32
length
,
i
;
nsresult
nsres
;
HRESULT
hres
=
S_OK
;
...
...
@@ -370,12 +372,24 @@ HRESULT get_frame_by_name(HTMLOuterWindow *This, const WCHAR *name, BOOL deep, H
return
E_FAIL
;
}
nsAString_InitDepend
(
&
name_str
,
name
);
nsres
=
nsIDOMWindowCollection_NamedItem
(
nsframes
,
&
name_str
,
&
nswindow
);
nsAString_Finish
(
&
name_str
);
if
(
NS_FAILED
(
nsres
))
{
nsIDOMWindowCollection_Release
(
nsframes
);
return
E_FAIL
;
}
if
(
nswindow
)
{
*
ret
=
nswindow_to_window
(
nswindow
);
return
S_OK
;
}
nsres
=
nsIDOMWindowCollection_GetLength
(
nsframes
,
&
length
);
assert
(
nsres
==
NS_OK
);
for
(
i
=
0
;
i
<
length
&&
!
window
;
++
i
)
{
HTMLOuterWindow
*
window_iter
;
nsIDOMWindow
*
nswindow
;
BSTR
id
;
nsres
=
nsIDOMWindowCollection_Item
(
nsframes
,
i
,
&
nswindow
);
...
...
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