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
90a4eb7d
Commit
90a4eb7d
authored
Dec 27, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 28, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Use nscolor_to_str in IHTMLBodyElement::get_text implementation.
parent
0f0cb605
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
htmlbody.c
dlls/mshtml/htmlbody.c
+8
-9
No files found.
dlls/mshtml/htmlbody.c
View file @
90a4eb7d
...
...
@@ -448,22 +448,21 @@ static HRESULT WINAPI HTMLBodyElement_get_text(IHTMLBodyElement *iface, VARIANT
HTMLBodyElement
*
This
=
HTMLBODY_THIS
(
iface
);
nsAString
text
;
nsresult
nsres
;
HRESULT
hres
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
nsAString_Init
(
&
text
,
NULL
);
V_VT
(
p
)
=
VT_BSTR
;
V_BSTR
(
p
)
=
NULL
;
nsres
=
nsIDOMHTMLBodyElement_GetText
(
This
->
nsbody
,
&
text
);
if
(
NS_SUCCEEDED
(
nsres
))
{
const
PRUnichar
*
sText
;
nsAString_GetData
(
&
text
,
&
sText
);
if
(
NS_SUCCEEDED
(
nsres
))
{
const
PRUnichar
*
color
;
nsAString_GetData
(
&
text
,
&
color
);
V_VT
(
p
)
=
VT_BSTR
;
V_BSTR
(
p
)
=
SysAllocString
(
sText
);
hres
=
nscolor_to_str
(
color
,
&
V_BSTR
(
p
));
}
else
{
ERR
(
"GetText failed: %08x
\n
"
,
nsres
);
hres
=
E_FAIL
;
}
nsAString_Finish
(
&
text
);
...
...
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