msxml3/tests: Avoid an unneeded lstrlenW() call.
This being a test we have to assume IXMLElement_get_text() could return a NULL string. Signed-off-by: Francois Gouget <fgouget@free.fr> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
1ee1f3d6e1
commit
a245084ae8
|
@ -972,7 +972,7 @@ static void test_xmlelem(void)
|
|||
|
||||
hr = IXMLElement_get_text(element, &str);
|
||||
ok(hr == S_OK, "Expected S_OK, got %08x\n", hr);
|
||||
ok(lstrlenW(str) == 0, "Expected empty text\n");
|
||||
ok(str && !*str, "Expected empty text\n");
|
||||
SysFreeString(str);
|
||||
|
||||
/* put_text with an ELEMENT */
|
||||
|
|
Loading…
Reference in New Issue