riched32/tests: Avoid an unneeded strlen() call.
Note that buffer is an array and thus cannot be NULL. Signed-off-by: Francois Gouget <fgouget@free.fr> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
72a7d94586
commit
a29af844e6
|
@ -293,7 +293,7 @@ static void test_EM_STREAMIN(void)
|
||||||
result = SendMessageA(hwndRichEdit, WM_GETTEXT, 1024, (LPARAM)buffer);
|
result = SendMessageA(hwndRichEdit, WM_GETTEXT, 1024, (LPARAM)buffer);
|
||||||
ok (result == 0,
|
ok (result == 0,
|
||||||
"EM_STREAMIN: Test 3 returned %ld, expected 0\n", result);
|
"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);
|
"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);
|
ok(es.dwError == -16, "EM_STREAMIN: Test 0 set error %d, expected %d\n", es.dwError, -16);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue