Commit ca5d2eab authored by Alexandre Julliard's avatar Alexandre Julliard

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

parent df0f32bb
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment