Francois Gouget : riched32/tests: Avoid an unneeded strlen() call.
Module: wine Branch: master Commit: a29af844e6df1dc84574a3128c6f56a751e41beb URL: https://source.winehq.org/git/wine.git/?a=commit;h=a29af844e6df1dc84574a3128... Author: Francois Gouget <fgouget(a)free.fr> Date: Tue Dec 10 09:25:42 2019 +0100 riched32/tests: Avoid an unneeded strlen() call. Note that buffer is an array and thus cannot be NULL. Signed-off-by: Francois Gouget <fgouget(a)free.fr> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- 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 0d55b7cd6e..950c175bbb 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);
participants (1)
-
Alexandre Julliard