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
d0898685
Commit
d0898685
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 is_elem_name.
parent
3efaaacf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
htmlelemcol.c
dlls/mshtml/htmlelemcol.c
+3
-6
No files found.
dlls/mshtml/htmlelemcol.c
View file @
d0898685
...
...
@@ -368,7 +368,7 @@ static BOOL is_elem_id(HTMLElement *elem, LPCWSTR name)
static
BOOL
is_elem_name
(
HTMLElement
*
elem
,
LPCWSTR
name
)
{
const
PRUnichar
*
str
;
nsAString
nsstr
,
nsname
;
nsAString
nsstr
;
BOOL
ret
=
FALSE
;
nsresult
nsres
;
...
...
@@ -385,15 +385,12 @@ static BOOL is_elem_name(HTMLElement *elem, LPCWSTR name)
return
TRUE
;
}
nsAString_InitDepend
(
&
nsname
,
nameW
);
nsres
=
nsIDOMHTMLElement_GetAttribute
(
elem
->
nselem
,
&
nsname
,
&
nsstr
);
nsAString_Finish
(
&
nsname
);
nsres
=
get_elem_attr_value
(
elem
->
nselem
,
nameW
,
&
nsstr
,
&
str
);
if
(
NS_SUCCEEDED
(
nsres
))
{
nsAString_GetData
(
&
nsstr
,
&
str
);
ret
=
!
strcmpiW
(
str
,
name
);
nsAString_Finish
(
&
nsstr
);
}
nsAString_Finish
(
&
nsstr
);
return
ret
;
}
...
...
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