[PATCH] comctl32/tests: Avoid an unneeded lstrlenW() call.
Francois Gouget
fgouget at free.fr
Sun Oct 20 23:25:47 CDT 2019
Note that buffer_w is an array and thus cannot be NULL.
Signed-off-by: Francois Gouget <fgouget at free.fr>
---
dlls/comctl32/tests/button.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/comctl32/tests/button.c b/dlls/comctl32/tests/button.c
index dd05a98d2dd..14071b2ecd0 100644
--- a/dlls/comctl32/tests/button.c
+++ b/dlls/comctl32/tests/button.c
@@ -1166,7 +1166,7 @@ static void test_note(void)
size = ARRAY_SIZE(buffer_w);
ret = SendMessageA(hwnd, BCM_GETNOTE, (WPARAM)&size, (LPARAM)buffer_w);
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);
error = GetLastError();
ok(error == NO_ERROR, "Expect last error: 0x%08x, got: 0x%08x\n", NO_ERROR, error);
--
2.20.1
More information about the wine-devel
mailing list