From 918c9d599489a79cb4c512918578ced4d33f6565 Mon Sep 17 00:00:00 2001 From: Andrew Nguyen Date: Mon, 24 Aug 2009 01:50:30 -0500 Subject: [PATCH] user32/tests: Fix a test failure on Win9x. --- dlls/user32/tests/dialog.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/user32/tests/dialog.c b/dlls/user32/tests/dialog.c index dfb24833629..b7d2b469499 100644 --- a/dlls/user32/tests/dialog.c +++ b/dlls/user32/tests/dialog.c @@ -965,7 +965,8 @@ static void test_DialogBoxParamA(void) SetLastError(0xdeadbeef); ret = DefDlgProcA(0, WM_ERASEBKGND, 0, 0); ok(ret == 0, "DefDlgProcA returned %ld, expected 0\n", ret); - ok(GetLastError() == ERROR_INVALID_WINDOW_HANDLE, + ok(GetLastError() == ERROR_INVALID_WINDOW_HANDLE || + broken(GetLastError() == 0xdeadbeef), "got %d, expected ERROR_INVALID_WINDOW_HANDLE\n", GetLastError()); }