msxml/tests: Use VariantInit, not VariantClear, to initialize new variants.

This commit is contained in:
Dan Kegel 2008-06-05 17:07:40 -07:00 committed by Alexandre Julliard
parent a302ec645c
commit d38dc0233a
1 changed files with 1 additions and 1 deletions

View File

@ -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)