comdlg32/tests: PrintDlg with PD_RETURNDEFAULT can fail.
This commit is contained in:
parent
3241974ebd
commit
75dce501ef
|
@ -70,7 +70,9 @@ static void test_PrintDlgA(void)
|
|||
pDlg->Flags = PD_RETURNDEFAULT;
|
||||
SetLastError(0xdeadbeef);
|
||||
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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue