From a29af844e6df1dc84574a3128c6f56a751e41beb Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Tue, 10 Dec 2019 09:25:42 +0100 Subject: [PATCH] riched32/tests: Avoid an unneeded strlen() call. Note that buffer is an array and thus cannot be NULL. Signed-off-by: Francois Gouget Signed-off-by: Alexandre Julliard --- dlls/riched32/tests/editor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/riched32/tests/editor.c b/dlls/riched32/tests/editor.c index 0d55b7cd6ed..950c175bbbe 100644 --- a/dlls/riched32/tests/editor.c +++ b/dlls/riched32/tests/editor.c @@ -293,7 +293,7 @@ static void test_EM_STREAMIN(void) result = SendMessageA(hwndRichEdit, WM_GETTEXT, 1024, (LPARAM)buffer); ok (result == 0, "EM_STREAMIN: Test 3 returned %ld, expected 0\n", result); - ok (strlen(buffer) == 0, + ok (!*buffer, "EM_STREAMIN: Test 3 set wrong text: Result: %s\n",buffer); ok(es.dwError == -16, "EM_STREAMIN: Test 0 set error %d, expected %d\n", es.dwError, -16);