Commit 9457b463 authored by Adam Gundy's avatar Adam Gundy Committed by Alexandre Julliard

Make sure the new array of printer pointers is NULL initialized.

parent 8e94fbf3
......@@ -435,7 +435,7 @@ static HANDLE WINSPOOL_GetOpenedPrinterEntry( LPCWSTR name )
if (i >= nb_printers)
{
LPWSTR *new_array = HeapReAlloc( GetProcessHeap(), 0, printer_array,
LPWSTR *new_array = HeapReAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, printer_array,
(nb_printers + 16) * sizeof(*new_array) );
if (!new_array) return 0;
printer_array = new_array;
......
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