Commit ff0f5e40 authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

winspool.drv: Fix incorrect read of enumerated printer count.

This was changed from a unsigned int to a pointer in e5d37832 and this use was missed, causing prefix creation hang if the allocated printers array is not filled with zeros. Signed-off-by: 's avatarRémi Bernon <rbernon@codeweavers.com> Signed-off-by: 's avatarHuw Davies <huw@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent a5bea3e8
......@@ -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)
......
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