Commit d0ce5a77 authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

winspool: Initialize nt_ppd in add_printer_driver.

This prevents a bad free if RtlDosPathNameToNtPathName_U fails.
parent e8bd0665
......@@ -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;
......
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