mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-01 04:03:39 +00:00
winspool: Initialize nt_ppd in add_printer_driver.
This prevents a bad free if RtlDosPathNameToNtPathName_U fails.
This commit is contained in:
parent
e8bd066514
commit
d0ce5a77c6
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue