Francois Gouget : user32/tests: Avoid an unneeded lstrlenA() call.
Alexandre Julliard
julliard at winehq.org
Mon Dec 9 16:57:37 CST 2019
Module: wine
Branch: master
Commit: 3b91403e411f4ad81f46e14d0aeb41f2dcf7686b
URL: https://source.winehq.org/git/wine.git/?a=commit;h=3b91403e411f4ad81f46e14d0aeb41f2dcf7686b
Author: Francois Gouget <fgouget at free.fr>
Date: Mon Dec 9 09:41:10 2019 +0100
user32/tests: Avoid an unneeded lstrlenA() call.
Note that ptr may be NULL (see ok() check a few lines up).
Signed-off-by: Francois Gouget <fgouget at free.fr>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/user32/tests/dde.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/user32/tests/dde.c b/dlls/user32/tests/dde.c
index eed2ac437e..d370df181a 100644
--- a/dlls/user32/tests/dde.c
+++ b/dlls/user32/tests/dde.c
@@ -1977,7 +1977,7 @@ static void test_DdeCreateDataHandle(void)
ok(size == 262, "Expected 262, got %d\n", size);
todo_wine
{
- ok(lstrlenA((LPSTR)ptr) == 0, "Expected 0, got %d\n", lstrlenA((LPSTR)ptr));
+ ok(ptr && !*ptr, "Expected 0, got %d\n", lstrlenA((LPSTR)ptr));
}
ret = DdeUnaccessData(hdata);
More information about the wine-cvs
mailing list