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
75a2e8c4
Commit
75a2e8c4
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 elem_string_attr_getter helper in HTMLLabelElement_get_htmlFor implementation.
parent
04ea007c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
20 deletions
+1
-20
htmlinput.c
dlls/mshtml/htmlinput.c
+1
-20
No files found.
dlls/mshtml/htmlinput.c
View file @
75a2e8c4
...
@@ -1334,29 +1334,10 @@ static HRESULT WINAPI HTMLLabelElement_put_htmlFor(IHTMLLabelElement *iface, BST
...
@@ -1334,29 +1334,10 @@ static HRESULT WINAPI HTMLLabelElement_put_htmlFor(IHTMLLabelElement *iface, BST
static
HRESULT
WINAPI
HTMLLabelElement_get_htmlFor
(
IHTMLLabelElement
*
iface
,
BSTR
*
p
)
static
HRESULT
WINAPI
HTMLLabelElement_get_htmlFor
(
IHTMLLabelElement
*
iface
,
BSTR
*
p
)
{
{
HTMLLabelElement
*
This
=
impl_from_IHTMLLabelElement
(
iface
);
HTMLLabelElement
*
This
=
impl_from_IHTMLLabelElement
(
iface
);
nsAString
for_str
,
val_str
;
nsresult
nsres
;
HRESULT
hres
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
nsAString_InitDepend
(
&
for_str
,
forW
);
return
elem_string_attr_getter
(
&
This
->
element
,
forW
,
p
);
nsAString_Init
(
&
val_str
,
NULL
);
nsres
=
nsIDOMHTMLElement_GetAttribute
(
This
->
element
.
nselem
,
&
for_str
,
&
val_str
);
nsAString_Finish
(
&
for_str
);
if
(
NS_SUCCEEDED
(
nsres
))
{
const
PRUnichar
*
val
;
nsAString_GetData
(
&
val_str
,
&
val
);
*
p
=
SysAllocString
(
val
);
hres
=
*
p
?
S_OK
:
E_OUTOFMEMORY
;
}
else
{
ERR
(
"GetAttribute failed: %08x
\n
"
,
nsres
);
hres
=
E_FAIL
;
}
nsAString_Finish
(
&
val_str
);
return
hres
;
}
}
static
HRESULT
WINAPI
HTMLLabelElement_put_accessKey
(
IHTMLLabelElement
*
iface
,
BSTR
v
)
static
HRESULT
WINAPI
HTMLLabelElement_put_accessKey
(
IHTMLLabelElement
*
iface
,
BSTR
v
)
...
...
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