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>
stable
Francois Gouget 2019-12-10 09:22:36 +01:00 committed by Alexandre Julliard
parent 1ee1f3d6e1
commit a245084ae8
1 changed files with 1 additions and 1 deletions

View File

@ -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 */