[PATCH] riched32/tests: Avoid an unneeded strlen() call.
Francois Gouget
fgouget at free.fr
Tue Dec 10 02:25:42 CST 2019
Note that buffer is an array and thus cannot be NULL.
Signed-off-by: Francois Gouget <fgouget at free.fr>
---
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);
--
2.20.1
More information about the wine-devel
mailing list