Piotr Caban : msxml3: Ignore nanoseconds in xmlnode_get_nodeTypedValue.
Alexandre Julliard
julliard at winehq.org
Thu Nov 19 10:15:18 CST 2009
Module: wine
Branch: master
Commit: 5f26c60982631ec1c180caafc56f467071728ce0
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5f26c60982631ec1c180caafc56f467071728ce0
Author: Piotr Caban <piotr.caban at gmail.com>
Date: Wed Nov 18 19:02:15 2009 +0100
msxml3: Ignore nanoseconds in xmlnode_get_nodeTypedValue.
---
dlls/msxml3/node.c | 9 ---------
dlls/msxml3/tests/domdoc.c | 6 +++---
2 files changed, 3 insertions(+), 12 deletions(-)
diff --git a/dlls/msxml3/node.c b/dlls/msxml3/node.c
index b949037..1ddbc07 100644
--- a/dlls/msxml3/node.c
+++ b/dlls/msxml3/node.c
@@ -999,16 +999,7 @@ inline HRESULT VARIANT_from_xmlChar(xmlChar *str, VARIANT *v, BSTR type)
if(*p == '.')
{
- int ms;
-
p++;
- ms = (*(p++) - '0') * 10;
- if(isdigitW(*p)) ms += *(p++) - '0';
- ms *= 10;
- if(isdigitW(*p)) ms += *(p++) - '0';
-
- st.wMilliseconds = ms;
-
while(isdigitW(*p)) p++;
}
}
diff --git a/dlls/msxml3/tests/domdoc.c b/dlls/msxml3/tests/domdoc.c
index 6e08ca9..f84d748 100644
--- a/dlls/msxml3/tests/domdoc.c
+++ b/dlls/msxml3/tests/domdoc.c
@@ -4103,7 +4103,7 @@ static void test_NodeTypeValue(void)
hr = IXMLDOMNode_get_nodeTypedValue(pNode, &v);
ok(hr == S_OK, "ret %08x\n", hr );
ok(V_VT(&v) == VT_DATE, "incorrect type\n");
- double_eq(40135.13996666666, V_DATE(&v));
+ double_eq(40135.13996527778, V_DATE(&v));
VariantClear( &v );
IXMLDOMNode_Release(pNode);
@@ -4142,7 +4142,7 @@ static void test_NodeTypeValue(void)
hr = IXMLDOMNode_get_nodeTypedValue(pNode, &v);
ok(hr == S_OK, "ret %08x\n", hr );
ok(V_VT(&v) == VT_DATE, "incorrect type\n");
- double_eq(0.581392511574074, V_DATE(&v));
+ double_eq(0.5813888888888888, V_DATE(&v));
VariantClear( &v );
IXMLDOMNode_Release(pNode);
@@ -4155,7 +4155,7 @@ static void test_NodeTypeValue(void)
hr = IXMLDOMNode_get_nodeTypedValue(pNode, &v);
ok(hr == S_OK, "ret %08x\n", hr );
ok(V_VT(&v) == VT_DATE, "incorrect type\n");
- double_eq(1.112513078703703, V_DATE(&v));
+ double_eq(1.112511574074074, V_DATE(&v));
VariantClear( &v );
IXMLDOMNode_Release(pNode);
More information about the wine-cvs
mailing list