Commit 75dce501 authored by Detlef Riekenberg's avatar Detlef Riekenberg Committed by Alexandre Julliard

comdlg32/tests: PrintDlg with PD_RETURNDEFAULT can fail.

parent 3241974e
...@@ -70,7 +70,9 @@ static void test_PrintDlgA(void) ...@@ -70,7 +70,9 @@ static void test_PrintDlgA(void)
pDlg->Flags = PD_RETURNDEFAULT; pDlg->Flags = PD_RETURNDEFAULT;
SetLastError(0xdeadbeef); SetLastError(0xdeadbeef);
res = PrintDlgA(pDlg); res = PrintDlgA(pDlg);
ok(res, "returned %ld with 0x%lx and 0x%lx (expected '!= 0')\n", res, GetLastError(), CommDlgExtendedError()); ok( res || (CommDlgExtendedError() == PDERR_NODEFAULTPRN),
"returned %ld with 0x%lx and 0x%lx (expected '!= 0' or '0' and " \
"PDERR_NODEFAULTPRN)\n", res, GetLastError(), CommDlgExtendedError());
HeapFree(GetProcessHeap(), 0, pDlg); HeapFree(GetProcessHeap(), 0, pDlg);
......
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