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
44980403
Commit
44980403
authored
Nov 18, 2009
by
Piotr Caban
Committed by
Alexandre Julliard
Nov 18, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Implemented xmlnode_get_nodeTypedValue 'int' data type handling.
parent
0a6d3a70
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
4 deletions
+32
-4
node.c
dlls/msxml3/node.c
+18
-4
domdoc.c
dlls/msxml3/tests/domdoc.c
+14
-0
No files found.
dlls/msxml3/node.c
View file @
44980403
...
...
@@ -959,12 +959,26 @@ inline HRESULT VARIANT_from_xmlChar(xmlChar *str, VARIANT *v, BSTR type)
}
else
{
FIXME
(
"Type handling not yet implemented
\n
"
);
V_VT
(
v
)
=
VT_BSTR
;
V_BSTR
(
v
)
=
bstr_from_xmlChar
(
str
);
VARIANT
src
;
HRESULT
hres
;
if
(
!
V_BSTR
(
v
))
if
(
!
lstrcmpiW
(
type
,
szInt
))
V_VT
(
v
)
=
VT_I4
;
else
{
FIXME
(
"Type handling not yet implemented
\n
"
);
V_VT
(
v
)
=
VT_BSTR
;
}
V_VT
(
&
src
)
=
VT_BSTR
;
V_BSTR
(
&
src
)
=
bstr_from_xmlChar
(
str
);
if
(
!
V_BSTR
(
&
src
))
return
E_OUTOFMEMORY
;
hres
=
VariantChangeType
(
v
,
&
src
,
0
,
V_VT
(
v
));
VariantClear
(
&
src
);
return
hres
;
}
return
S_OK
;
...
...
dlls/msxml3/tests/domdoc.c
View file @
44980403
...
...
@@ -153,6 +153,7 @@ static const CHAR szTypeValueXML[] =
" <string2 dt:dt=
\"
string
\"
>String</string2>
\n
"
" <number dt:dt=
\"
number
\"
>12.44</number>
\n
"
" <number2 dt:dt=
\"
NUMbEr
\"
>-3.71e3</number2>
\n
"
" <int dt:dt=
\"
int
\"
>-13</int>
\n
"
"</root>"
;
static
const
CHAR
szBasicTransformSSXMLPart1
[]
=
...
...
@@ -4037,6 +4038,19 @@ static void test_NodeTypeValue(void)
IXMLDOMNode_Release
(
pNode
);
}
hr
=
IXMLDOMDocument2_selectSingleNode
(
doc
,
_bstr_
(
"root/int"
),
&
pNode
);
ok
(
hr
==
S_OK
,
"ret %08x
\n
"
,
hr
);
if
(
hr
==
S_OK
)
{
hr
=
IXMLDOMNode_get_nodeTypedValue
(
pNode
,
&
v
);
ok
(
hr
==
S_OK
,
"ret %08x
\n
"
,
hr
);
ok
(
V_VT
(
&
v
)
==
VT_I4
,
"incorrect type
\n
"
);
ok
(
V_I4
(
&
v
)
==
-
13
,
"incorrect value
\n
"
);
VariantClear
(
&
v
);
IXMLDOMNode_Release
(
pNode
);
}
}
IXMLDOMDocument2_Release
(
doc
);
...
...
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