Commit 62910fff authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

user32/tests: Expect DialogBoxParam to set ERROR_CANNOT_FIND_WND_CLASS.

Fixes a testbot failure. Signed-off-by: 's avatarAlex Henrie <alexhenrie24@gmail.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 4c1a288f
......@@ -1851,7 +1851,10 @@ static void test_DialogBoxParam(void)
SetLastError(0xdeadbeef);
ret = DialogBoxParamA(GetModuleHandleA(NULL), "TEST_DIALOG_INVALID_CLASS", 0, DestroyDlgWinProc, 0);
ok(ret == -1, "DialogBoxParamA returned %ld, expected -1\n", ret);
ok(GetLastError() == 0, "got %d\n", GetLastError());
todo_wine
ok(GetLastError() == ERROR_CANNOT_FIND_WND_CLASS ||
broken(GetLastError() == ERROR_SUCCESS) /* < win10 21H1 */,
"got %u, expected ERROR_CANNOT_FIND_WND_CLASS\n", GetLastError());
SetLastError(0xdeadbeef);
ret = DefDlgProcA(0, WM_ERASEBKGND, 0, 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment