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

This commit is contained in:
Adam Gundy 2003-03-30 01:35:31 +00:00 committed by Alexandre Julliard
parent 8e94fbf305
commit 9457b463e0
1 changed files with 1 additions and 1 deletions

View File

@ -435,7 +435,7 @@ static HANDLE WINSPOOL_GetOpenedPrinterEntry( LPCWSTR name )
if (i >= nb_printers) 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) ); (nb_printers + 16) * sizeof(*new_array) );
if (!new_array) return 0; if (!new_array) return 0;
printer_array = new_array; printer_array = new_array;