comdlg32/tests: PrintDlg with PD_RETURNDEFAULT can fail.

This commit is contained in:
Detlef Riekenberg 2006-07-23 20:39:18 +02:00 committed by Alexandre Julliard
parent 3241974ebd
commit 75dce501ef
1 changed files with 3 additions and 1 deletions

View File

@ -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);