winspool.drv: Make sure the DEVMODE structure is fully initialized.
This commit is contained in:
parent
df0f32bbd9
commit
ca5d2eabdc
|
@ -1509,7 +1509,7 @@ static LPDEVMODEA DEVMODEdupWtoA(const DEVMODEW *dmW)
|
|||
size = dmW->dmSize - CCHDEVICENAME -
|
||||
((dmW->dmSize > FIELD_OFFSET(DEVMODEW, dmFormName)) ? CCHFORMNAME : 0);
|
||||
|
||||
dmA = HeapAlloc(GetProcessHeap(), 0, size + dmW->dmDriverExtra);
|
||||
dmA = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, size + dmW->dmDriverExtra);
|
||||
if (!dmA) return NULL;
|
||||
|
||||
WideCharToMultiByte(CP_ACP, 0, dmW->dmDeviceName, -1,
|
||||
|
|
Loading…
Reference in New Issue