winspool.drv: Fix incorrect read of enumerated printer count.
This was changed from a unsigned int to a pointer in
e5d37832ee
and this use was missed,
causing prefix creation hang if the allocated printers array is not
filled with zeros.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
a5bea3e89f
commit
ff0f5e4024
|
@ -800,7 +800,7 @@ static BOOL init_unix_printers( void )
|
|||
if (printer->is_default) default_printer = printer->name;
|
||||
}
|
||||
|
||||
if (!default_printer && enum_params.num) default_printer = enum_params.printers[0].name;
|
||||
if (!default_printer && num) default_printer = enum_params.printers[0].name;
|
||||
if (default_printer) SetDefaultPrinterW( default_printer );
|
||||
|
||||
if (ppd_dir)
|
||||
|
|
Loading…
Reference in New Issue