Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
3c1f2d6c
Commit
3c1f2d6c
authored
Jul 05, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 06, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added get_text implementation.
parent
6e8e1956
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
2 deletions
+20
-2
txtrange.c
dlls/mshtml/txtrange.c
+20
-2
No files found.
dlls/mshtml/txtrange.c
View file @
3c1f2d6c
...
...
@@ -152,8 +152,26 @@ static HRESULT WINAPI HTMLTxtRange_put_text(IHTMLTxtRange *iface, BSTR v)
static
HRESULT
WINAPI
HTMLTxtRange_get_text
(
IHTMLTxtRange
*
iface
,
BSTR
*
p
)
{
HTMLTxtRange
*
This
=
HTMLTXTRANGE_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
PRUnichar
*
nstext
=
NULL
;
nsresult
nsres
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
if
(
!
This
->
nsselection
)
{
static
const
WCHAR
empty
[]
=
{
0
};
*
p
=
SysAllocString
(
empty
);
return
S_OK
;
}
nsres
=
nsISelection_ToString
(
This
->
nsselection
,
&
nstext
);
if
(
NS_FAILED
(
nsres
)
||
!
nstext
)
{
ERR
(
"toString failed: %08lx
\n
"
,
nsres
);
return
E_FAIL
;
}
*
p
=
SysAllocString
(
nstext
);
nsfree
(
nstext
);
return
S_OK
;
}
static
HRESULT
WINAPI
HTMLTxtRange_parentElement
(
IHTMLTxtRange
*
iface
,
IHTMLElement
**
parent
)
...
...
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