Commit 4fcd040d authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

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

parent 85148f9e
...@@ -1002,10 +1002,9 @@ static HANDLE get_opened_printer_entry(LPWSTR name, LPPRINTER_DEFAULTSW pDefault ...@@ -1002,10 +1002,9 @@ static HANDLE get_opened_printer_entry(LPWSTR name, LPPRINTER_DEFAULTSW pDefault
if(handle == nb_printer_handles) if(handle == nb_printer_handles)
handle = i; 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;
} }
} }
......
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