winspool: Don't try to match a printer to a server handle.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51853
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Huw Davies 2022-01-04 11:09:44 +00:00 committed by Alexandre Julliard
parent 85148f9ee0
commit 4fcd040d90
1 changed files with 2 additions and 3 deletions

View File

@ -1002,10 +1002,9 @@ static HANDLE get_opened_printer_entry(LPWSTR name, LPPRINTER_DEFAULTSW pDefault
if(handle == nb_printer_handles)
handle = i;
}
else
else if (!queue && name && printer_handles[i]->name && !wcscmp( name, printer_handles[i]->name ))
{
if(!queue && (name) && !wcscmp( name, printer_handles[i]->name ))
queue = printer_handles[i]->queue;
queue = printer_handles[i]->queue;
}
}