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@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Francois Gouget 2019-12-09 09:41:10 +01:00 committed by Alexandre Julliard
parent e248170e30
commit 3b91403e41
1 changed files with 1 additions and 1 deletions

View File

@ -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);