wineps.drv: Properly handle dmFormName in unicode DEVMODE structure.
This commit is contained in:
parent
ef489d647a
commit
383318bc02
|
@ -178,7 +178,7 @@ void PSDRV_MergeDevmodes( PSDRV_DEVMODE *dm1, PSDRV_DEVMODE *dm2, PRINTERINFO *p
|
|||
if (dm2->dmPublic.dmFields & DM_COLLATE )
|
||||
dm1->dmPublic.dmCollate = dm2->dmPublic.dmCollate;
|
||||
if (dm2->dmPublic.dmFields & DM_FORMNAME )
|
||||
lstrcpynA((LPSTR)dm1->dmPublic.dmFormName, (LPCSTR)dm2->dmPublic.dmFormName, CCHFORMNAME);
|
||||
lstrcpynW(dm1->dmPublic.dmFormName, dm2->dmPublic.dmFormName, CCHFORMNAME);
|
||||
if (dm2->dmPublic.dmFields & DM_BITSPERPEL )
|
||||
dm1->dmPublic.dmBitsPerPel = dm2->dmPublic.dmBitsPerPel;
|
||||
if (dm2->dmPublic.dmFields & DM_PELSWIDTH )
|
||||
|
|
Loading…
Reference in New Issue