winspool: Initialize nt_ppd in add_printer_driver.

This prevents a bad free if RtlDosPathNameToNtPathName_U fails.
This commit is contained in:
Alex Henrie 2023-02-16 09:15:56 -07:00 committed by Alexandre Julliard
parent e8bd066514
commit d0ce5a77c6

View file

@ -635,7 +635,7 @@ static BOOL add_printer_driver( const WCHAR *name, const WCHAR *ppd_dir )
{
WCHAR *ppd = get_ppd_filename( ppd_dir, name );
struct get_ppd_params ppd_params;
UNICODE_STRING nt_ppd;
UNICODE_STRING nt_ppd = { .Buffer = NULL };
DRIVER_INFO_3W di3;
unsigned int i;
BOOL res = FALSE;