comctl32/tests: Avoid an unneeded lstrlenW() call.

Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Francois Gouget 2019-10-21 06:25:47 +02:00 committed by Alexandre Julliard
parent 0705b0f182
commit 77e8de518e
1 changed files with 1 additions and 1 deletions

View File

@ -1166,7 +1166,7 @@ static void test_note(void)
size = ARRAY_SIZE(buffer_w); size = ARRAY_SIZE(buffer_w);
ret = SendMessageA(hwnd, BCM_GETNOTE, (WPARAM)&size, (LPARAM)buffer_w); ret = SendMessageA(hwnd, BCM_GETNOTE, (WPARAM)&size, (LPARAM)buffer_w);
ok(ret, "Expect BCM_GETNOTE return true\n"); ok(ret, "Expect BCM_GETNOTE return true\n");
ok(lstrlenW(buffer_w) == 0, "Expect note length 0\n"); ok(!*buffer_w, "Expect note length 0\n");
ok(size == ARRAY_SIZE(buffer_w), "Got: %d\n", size); ok(size == ARRAY_SIZE(buffer_w), "Got: %d\n", size);
error = GetLastError(); error = GetLastError();
ok(error == NO_ERROR, "Expect last error: 0x%08x, got: 0x%08x\n", NO_ERROR, error); ok(error == NO_ERROR, "Expect last error: 0x%08x, got: 0x%08x\n", NO_ERROR, error);