From a245084ae840ab625671a6b70e2ea8b0ac3e0a3f Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Tue, 10 Dec 2019 09:22:36 +0100 Subject: [PATCH] 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 Signed-off-by: Alexandre Julliard --- dlls/msxml3/tests/xmldoc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/msxml3/tests/xmldoc.c b/dlls/msxml3/tests/xmldoc.c index 359297f592f..693af195717 100644 --- a/dlls/msxml3/tests/xmldoc.c +++ b/dlls/msxml3/tests/xmldoc.c @@ -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 */