Austin English : user32: Test what FindWindow does when window isn't found.

Alexandre Julliard julliard at winehq.org
Wed Aug 20 08:13:57 CDT 2008


Module: wine
Branch: master
Commit: f8cd30e9e1d05fcd7cad4600649848ea6d7ebc26
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f8cd30e9e1d05fcd7cad4600649848ea6d7ebc26

Author: Austin English <austinenglish at gmail.com>
Date:   Fri Aug 15 12:13:13 2008 -0500

user32: Test what FindWindow does when 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..1964e88 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" );




More information about the wine-cvs mailing list