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
637310be
Commit
637310be
authored
Oct 20, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 23, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Don't return empty string in IHTMLSelectElement::get_name.
parent
6d1b4af5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
htmlselect.c
dlls/mshtml/htmlselect.c
+8
-1
No files found.
dlls/mshtml/htmlselect.c
View file @
637310be
...
@@ -178,8 +178,15 @@ static HRESULT WINAPI HTMLSelectElement_get_name(IHTMLSelectElement *iface, BSTR
...
@@ -178,8 +178,15 @@ static HRESULT WINAPI HTMLSelectElement_get_name(IHTMLSelectElement *iface, BSTR
nsres
=
nsIDOMHTMLSelectElement_GetName
(
This
->
nsselect
,
&
name_str
);
nsres
=
nsIDOMHTMLSelectElement_GetName
(
This
->
nsselect
,
&
name_str
);
if
(
NS_SUCCEEDED
(
nsres
))
{
if
(
NS_SUCCEEDED
(
nsres
))
{
static
const
WCHAR
wszGarbage
[]
=
{
'g'
,
'a'
,
'r'
,
'b'
,
'a'
,
'g'
,
'e'
,
0
};
nsAString_GetData
(
&
name_str
,
&
name
,
NULL
);
nsAString_GetData
(
&
name_str
,
&
name
,
NULL
);
*
p
=
SysAllocString
(
name
);
/*
* Native never returns empty string here. If an element has no name,
* name of previous element or ramdom data is returned.
*/
*
p
=
SysAllocString
(
*
name
?
name
:
wszGarbage
);
}
else
{
}
else
{
ERR
(
"GetName failed: %08x
\n
"
,
nsres
);
ERR
(
"GetName failed: %08x
\n
"
,
nsres
);
}
}
...
...
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