From 7f0290a559a208438b6a53c2fa33493ac91d152f Mon Sep 17 00:00:00 2001 From: Austin English Date: Thu, 14 Aug 2008 10:18:23 -0500 Subject: [PATCH] user32: test what FindWindow does when window isn't found --- dlls/user32/tests/win.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/dlls/user32/tests/win.c b/dlls/user32/tests/win.c index 9ac29b8..6f4ea76 100644 --- a/dlls/user32/tests/win.c +++ b/dlls/user32/tests/win.c @@ -4794,6 +4794,14 @@ static void test_hwnd_message(void) ok( found == hwnd, "didn't find message window %p/%p\n", found, hwnd ); } + found = FindWindow("SomeWindowThatDoesNotExist", NULL); + if(found) { + printf("found not NULL"); + } + else { + todo_wine + ok(GetLastError() == ERROR_FILE_NOT_FOUND, "ERROR_FILE_NOT_FOUND, got %d\n", GetLastError()); + } /* test IsChild behavior */ if (parent) ok( !IsChild( parent, hwnd ), "HWND_MESSAGE is child of top window\n" ); -- 1.5.3.6