Commit 619621d9 authored by Detlef Riekenberg's avatar Detlef Riekenberg Committed by Alexandre Julliard

winspool: Improve trace for ClosePrinter.

parent 5012fa06
......@@ -2961,17 +2961,22 @@ BOOL WINAPI ClosePrinter(HANDLE hPrinter)
opened_printer_t *printer = NULL;
BOOL ret = FALSE;
TRACE("Handle %p\n", hPrinter);
TRACE("(%p)\n", hPrinter);
EnterCriticalSection(&printer_handles_cs);
if ((i > 0) && (i <= nb_printer_handles))
printer = printer_handles[i - 1];
if(printer)
{
struct list *cursor, *cursor2;
TRACE("%p: %s (hXcv: %p) for %s (doc: %p)\n", printer->pm,
debugstr_w(printer->pm ? printer->pm->dllname : NULL),
printer->hXcv, debugstr_w(printer->name), printer->doc );
if(printer->doc)
EndDocPrinter(hPrinter);
......
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