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
04ea007c
Commit
04ea007c
authored
May 27, 2014
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 11, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Use get_elem_attr_value helper in HTMLFormElement_get_dispid.
parent
df62eea1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
htmlform.c
dlls/mshtml/htmlform.c
+12
-12
No files found.
dlls/mshtml/htmlform.c
View file @
04ea007c
...
...
@@ -568,7 +568,7 @@ static HRESULT HTMLFormElement_get_dispid(HTMLDOMNode *iface,
{
HTMLFormElement
*
This
=
impl_from_HTMLDOMNode
(
iface
);
nsIDOMHTMLCollection
*
elements
;
nsAString
ns
name
,
ns
str
;
nsAString
ns
str
,
name_
str
;
UINT32
len
,
i
;
nsresult
nsres
;
HRESULT
hres
=
DISP_E_UNKNOWNNAME
;
...
...
@@ -604,7 +604,6 @@ static HRESULT HTMLFormElement_get_dispid(HTMLDOMNode *iface,
}
}
nsAString_InitDepend
(
&
nsname
,
nameW
);
nsAString_Init
(
&
nsstr
,
NULL
);
for
(
i
=
0
;
i
<
len
;
++
i
)
{
nsIDOMNode
*
nsitem
;
...
...
@@ -644,21 +643,22 @@ static HRESULT HTMLFormElement_get_dispid(HTMLDOMNode *iface,
}
/* compare by name attr */
nsres
=
nsIDOMHTMLElement_GetAttribute
(
nshtml_elem
,
&
nsname
,
&
ns
str
);
nsres
=
get_elem_attr_value
(
nshtml_elem
,
nameW
,
&
name_str
,
&
str
);
nsIDOMHTMLElement_Release
(
nshtml_elem
);
nsAString_GetData
(
&
nsstr
,
&
str
);
if
(
!
strcmpiW
(
str
,
name
))
{
/* FIXME: using index for dispid */
*
pid
=
MSHTML_DISPID_CUSTOM_MIN
+
i
;
hres
=
S_OK
;
break
;
if
(
NS_SUCCEEDED
(
nsres
))
{
if
(
!
strcmpiW
(
str
,
name
))
{
nsAString_Finish
(
&
name_str
);
/* FIXME: using index for dispid */
*
pid
=
MSHTML_DISPID_CUSTOM_MIN
+
i
;
hres
=
S_OK
;
break
;
}
nsAString_Finish
(
&
name_str
);
}
}
nsAString_Finish
(
&
nsname
);
nsAString_Finish
(
&
nsstr
);
nsAString_Finish
(
&
nsstr
);
nsIDOMHTMLCollection_Release
(
elements
);
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