user32: fix error setting in FindWindow (try 2)

Alexandre Julliard julliard at winehq.org
Fri Aug 22 03:54:49 CDT 2008


"Louis. Lenders" <xerox_xerox2000 at yahoo.co.uk> writes:

> diff --git a/dlls/user32/tests/win.c b/dlls/user32/tests/win.c
> index 1964e88..246347f 100644
> --- a/dlls/user32/tests/win.c
> +++ b/dlls/user32/tests/win.c
> @@ -4789,14 +4789,20 @@ static void test_hwnd_message(void)
>      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());
> +    ok(GetLastError() == ERROR_FILE_NOT_FOUND, "ERROR_FILE_NOT_FOUND, got %d\n", GetLastError());

Have you tried your test on Windows?  According to the test results
there isn't any Windows version that sets last error here.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list