wineps.drv: Check for correct value for end of list.

This commit is contained in:
Aric Stewart 2007-03-13 14:12:13 -05:00 committed by Alexandre Julliard
parent 33e310f63d
commit ea8e860903
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ void PSDRV_MergeDevmodes(PSDRV_DEVMODEA *dm1, PSDRV_DEVMODEA *dm2,
if(page->WinPage == dm2->dmPublic.u1.s1.dmPaperSize)
break;
}
if(page) {
if(&page->entry != &pi->ppd->PageSizes ) {
dm1->dmPublic.u1.s1.dmPaperSize = dm2->dmPublic.u1.s1.dmPaperSize;
dm1->dmPublic.u1.s1.dmPaperWidth = page->PaperDimension->x *
254.0 / 72.0;