msxml3: Improved checking of failed case.

This commit is contained in:
Alistair Leslie-Hughes 2008-06-18 21:40:06 +10:00 committed by Alexandre Julliard
parent 031e1ae441
commit 56d5332285
1 changed files with 1 additions and 1 deletions

View File

@ -287,7 +287,7 @@ static void test_xmlelem_collection(void)
ok(hr == S_OK || hr == ERROR_URL_NOT_FOUND, "Expected S_OK, got 0x%08x\n", hr);
SysFreeString(url);
if(hr == ERROR_URL_NOT_FOUND)
if(hr != S_OK)
goto cleanup;
hr = IXMLDocument_get_root(doc, &element);