From 453687cd6c24f34fe9da0d27eff554931a555361 Mon Sep 17 00:00:00 2001 From: Austin English Date: Fri, 15 Aug 2008 12:13:13 -0500 Subject: [PATCH] user32: find out what FindWindow does when a window isn't found --- dlls/user32/tests/win.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/dlls/user32/tests/win.c b/dlls/user32/tests/win.c index 9ac29b8..f1999e5 100644 --- a/dlls/user32/tests/win.c +++ b/dlls/user32/tests/win.c @@ -4786,8 +4786,11 @@ static void test_hwnd_message(void) found = FindWindowExA( 0, 0, 0, "message window" ); ok( found == hwnd, "didn't find message window %p/%p\n", found, hwnd ); + SetLastError(0xdeadbeef); found = FindWindowExA( GetDesktopWindow(), 0, 0, "message window" ); ok( found == 0, "found message window %p/%p\n", found, hwnd ); + todo_wine + ok(GetLastError() == ERROR_FILE_NOT_FOUND, "ERROR_FILE_NOT_FOUND, got %d\n", GetLastError()); if (parent) { found = FindWindowExA( parent, 0, 0, "message window" ); -- 1.5.3.6