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
72e70a01
Commit
72e70a01
authored
Feb 19, 2008
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Feb 19, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Implement IXMLDOMText length property.
parent
e2ac47a4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
2 deletions
+29
-2
domdoc.c
dlls/msxml3/tests/domdoc.c
+9
-0
text.c
dlls/msxml3/text.c
+20
-2
No files found.
dlls/msxml3/tests/domdoc.c
View file @
72e70a01
...
...
@@ -366,6 +366,7 @@ static void test_domdoc( void )
VARIANT
var
;
BSTR
str
;
long
code
;
long
nLength
=
0
;
r
=
CoCreateInstance
(
&
CLSID_DOMDocument
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IXMLDOMDocument
,
(
LPVOID
*
)
&
doc
);
...
...
@@ -554,6 +555,14 @@ static void test_domdoc( void )
ok
(
V_VT
(
&
var
)
==
VT_NULL
,
"incorrect dataType type
\n
"
);
VariantClear
(
&
var
);
/* test length property */
r
=
IXMLDOMText_get_length
(
nodetext
,
NULL
);
ok
(
r
==
E_INVALIDARG
,
"ret %08x
\n
"
,
r
);
r
=
IXMLDOMText_get_length
(
nodetext
,
&
nLength
);
ok
(
r
==
S_OK
,
"ret %08x
\n
"
,
r
);
ok
(
nLength
==
4
,
"expected 4 got %ld
\n
"
,
nLength
);
/* test nodeTypeString */
r
=
IXMLDOMText_get_nodeTypeString
(
nodetext
,
&
str
);
ok
(
r
==
S_OK
,
"ret %08x
\n
"
,
r
);
...
...
dlls/msxml3/text.c
View file @
72e70a01
...
...
@@ -491,8 +491,26 @@ static HRESULT WINAPI domtext_get_length(
IXMLDOMText
*
iface
,
long
*
len
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
domtext
*
This
=
impl_from_IXMLDOMText
(
iface
);
xmlnode
*
pDOMNode
=
impl_from_IXMLDOMNode
(
(
IXMLDOMNode
*
)
This
->
element
);
xmlChar
*
pContent
;
long
nLength
=
0
;
TRACE
(
"%p
\n
"
,
iface
);
if
(
!
len
)
return
E_INVALIDARG
;
pContent
=
xmlNodeGetContent
(
pDOMNode
->
node
);
if
(
pContent
)
{
nLength
=
xmlStrlen
(
pContent
);
xmlFree
(
pContent
);
}
*
len
=
nLength
;
return
S_OK
;
}
static
HRESULT
WINAPI
domtext_substringData
(
...
...
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