msxml3/tests: Avoid a crash that happens on some native systems.

This commit is contained in:
Mikołaj Zalewski 2007-07-12 00:11:59 +02:00 committed by Alexandre Julliard
parent 9b9e08c210
commit 3c29359286
1 changed files with 7 additions and 4 deletions

View File

@ -268,11 +268,14 @@ static void test_createElement(void)
ok(hr == S_OK, "Expected S_OK, got %d\n", hr);
ok(element != NULL, "Expected non-NULL element\n");
hr = IXMLElement_get_type(element, &type);
ok(hr == S_OK, "Expected S_OK, got %d\n", hr);
ok(type == XMLELEMTYPE_OTHER, "Expected XMLELEMTYPE_OTHER, got %ld\n", type);
if (element != NULL)
{
hr = IXMLElement_get_type(element, &type);
ok(hr == S_OK, "Expected S_OK, got %d\n", hr);
ok(type == XMLELEMTYPE_OTHER, "Expected XMLELEMTYPE_OTHER, got %ld\n", type);
IXMLElement_Release(element);
IXMLElement_Release(element);
}
/* invalid vName type */
V_VT(&vType) = VT_I4;