msxml/tests: Use VariantInit, not VariantClear, to initialize new variants.
This commit is contained in:
parent
a302ec645c
commit
d38dc0233a
|
@ -1934,7 +1934,7 @@ static void test_XPath(void)
|
||||||
|
|
||||||
ole_expect(IXMLDOMDocument_selectNodes(doc, _bstr_("root//foo:c"), &list), E_FAIL);
|
ole_expect(IXMLDOMDocument_selectNodes(doc, _bstr_("root//foo:c"), &list), E_FAIL);
|
||||||
|
|
||||||
VariantClear(&var);
|
VariantInit(&var);
|
||||||
todo_wine ole_check(IXMLDOMDocument2_getProperty(doc, _bstr_("SelectionNamespaces"), &var));
|
todo_wine ole_check(IXMLDOMDocument2_getProperty(doc, _bstr_("SelectionNamespaces"), &var));
|
||||||
todo_wine expect_eq(V_VT(&var), VT_BSTR, int, "%x");
|
todo_wine expect_eq(V_VT(&var), VT_BSTR, int, "%x");
|
||||||
if (V_VT(&var) == VT_BSTR)
|
if (V_VT(&var) == VT_BSTR)
|
||||||
|
|
Loading…
Reference in New Issue