comdlg32/tests: Handle result from broken drivers.
This commit is contained in:
parent
c1c2f99939
commit
8e56b8332e
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue