comdlg32/tests: Handle result from broken drivers.

This commit is contained in:
Detlef Riekenberg 2013-08-26 21:29:30 +02:00 committed by Alexandre Julliard
parent c1c2f99939
commit 8e56b8332e
1 changed files with 3 additions and 1 deletions

View File

@ -257,7 +257,9 @@ static void test_PrintDlgA(void)
ok(pDlg->nCopies == 123 || broken(pDlg->nCopies == 1), "expected nCopies 123, got %d\n", pDlg->nCopies);
ok(pDlg->hDevMode != 0, "hDevMode should not be 0\n");
dm = GlobalLock(pDlg->hDevMode);
ok(S1(U1(*dm)).dmCopies == 1, "expected dm->dmCopies 1, got %d\n", S1(U1(*dm)).dmCopies);
/* some broken drivers use always PD_USEDEVMODECOPIES */
ok((S1(U1(*dm)).dmCopies == 1) || broken(S1(U1(*dm)).dmCopies == 123),
"expected dm->dmCopies 1, got %d\n", S1(U1(*dm)).dmCopies);
GlobalUnlock(pDlg->hDevMode);
GlobalFree(pDlg->hDevMode);
GlobalFree(pDlg->hDevNames);