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
be435c47
Commit
be435c47
authored
Feb 26, 2008
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Feb 27, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Implement IXMLDOMComment_get_length.
parent
8487a5dc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
2 deletions
+27
-2
comment.c
dlls/msxml3/comment.c
+20
-2
domdoc.c
dlls/msxml3/tests/domdoc.c
+7
-0
No files found.
dlls/msxml3/comment.c
View file @
be435c47
...
...
@@ -500,8 +500,26 @@ static HRESULT WINAPI domcomment_get_length(
IXMLDOMComment
*
iface
,
long
*
len
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
domcomment
*
This
=
impl_from_IXMLDOMComment
(
iface
);
xmlnode
*
pDOMNode
=
impl_from_IXMLDOMNode
(
This
->
node
);
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
domcomment_substringData
(
...
...
dlls/msxml3/tests/domdoc.c
View file @
be435c47
...
...
@@ -2,6 +2,7 @@
* XML test
*
* Copyright 2005 Mike McCormack for CodeWeavers
* Copyright 2007 Alistair Leslie-Hughes
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
...
...
@@ -1949,6 +1950,7 @@ static void test_xmlTypes(void)
BSTR
str
;
IXMLDOMNode
*
pNextChild
=
(
IXMLDOMNode
*
)
0x1
;
/* Used for testing Siblings */
VARIANT
v
;
long
len
=
0
;
hr
=
CoCreateInstance
(
&
CLSID_DOMDocument
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IXMLDOMDocument2
,
(
LPVOID
*
)
&
doc
);
if
(
hr
!=
S_OK
)
...
...
@@ -2108,6 +2110,11 @@ static void test_xmlTypes(void)
ok
(
!
lstrcmpW
(
str
,
_bstr_
(
"This &is a ; test <>
\\
"
)
),
"incorrect xml string
\n
"
);
SysFreeString
(
str
);
/* test length property */
hr
=
IXMLDOMComment_get_length
(
pComment
,
&
len
);
ok
(
hr
==
S_OK
,
"ret %08x
\n
"
,
hr
);
ok
(
len
==
21
,
"expected 21 got %ld
\n
"
,
len
);
IXMLDOMComment_Release
(
pComment
);
}
...
...
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