winspool.drv: Make sure the DEVMODE structure is fully initialized.

This commit is contained in:
Alexandre Julliard 2009-03-12 13:34:12 +01:00
parent df0f32bbd9
commit ca5d2eabdc
1 changed files with 1 additions and 1 deletions

View File

@ -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,