msxml3: Ignore nanoseconds in xmlnode_get_nodeTypedValue.
This commit is contained in:
parent
f4f7198610
commit
5f26c60982
|
@ -999,16 +999,7 @@ inline HRESULT VARIANT_from_xmlChar(xmlChar *str, VARIANT *v, BSTR type)
|
||||||
|
|
||||||
if(*p == '.')
|
if(*p == '.')
|
||||||
{
|
{
|
||||||
int ms;
|
|
||||||
|
|
||||||
p++;
|
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++;
|
while(isdigitW(*p)) p++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4103,7 +4103,7 @@ static void test_NodeTypeValue(void)
|
||||||
hr = IXMLDOMNode_get_nodeTypedValue(pNode, &v);
|
hr = IXMLDOMNode_get_nodeTypedValue(pNode, &v);
|
||||||
ok(hr == S_OK, "ret %08x\n", hr );
|
ok(hr == S_OK, "ret %08x\n", hr );
|
||||||
ok(V_VT(&v) == VT_DATE, "incorrect type\n");
|
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 );
|
VariantClear( &v );
|
||||||
|
|
||||||
IXMLDOMNode_Release(pNode);
|
IXMLDOMNode_Release(pNode);
|
||||||
|
@ -4142,7 +4142,7 @@ static void test_NodeTypeValue(void)
|
||||||
hr = IXMLDOMNode_get_nodeTypedValue(pNode, &v);
|
hr = IXMLDOMNode_get_nodeTypedValue(pNode, &v);
|
||||||
ok(hr == S_OK, "ret %08x\n", hr );
|
ok(hr == S_OK, "ret %08x\n", hr );
|
||||||
ok(V_VT(&v) == VT_DATE, "incorrect type\n");
|
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 );
|
VariantClear( &v );
|
||||||
|
|
||||||
IXMLDOMNode_Release(pNode);
|
IXMLDOMNode_Release(pNode);
|
||||||
|
@ -4155,7 +4155,7 @@ static void test_NodeTypeValue(void)
|
||||||
hr = IXMLDOMNode_get_nodeTypedValue(pNode, &v);
|
hr = IXMLDOMNode_get_nodeTypedValue(pNode, &v);
|
||||||
ok(hr == S_OK, "ret %08x\n", hr );
|
ok(hr == S_OK, "ret %08x\n", hr );
|
||||||
ok(V_VT(&v) == VT_DATE, "incorrect type\n");
|
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 );
|
VariantClear( &v );
|
||||||
|
|
||||||
IXMLDOMNode_Release(pNode);
|
IXMLDOMNode_Release(pNode);
|
||||||
|
|
Loading…
Reference in New Issue