winspool: Improve trace for ClosePrinter.
This commit is contained in:
parent
5012fa06fc
commit
619621d9ea
|
@ -2961,17 +2961,22 @@ BOOL WINAPI ClosePrinter(HANDLE hPrinter)
|
||||||
opened_printer_t *printer = NULL;
|
opened_printer_t *printer = NULL;
|
||||||
BOOL ret = FALSE;
|
BOOL ret = FALSE;
|
||||||
|
|
||||||
TRACE("Handle %p\n", hPrinter);
|
TRACE("(%p)\n", hPrinter);
|
||||||
|
|
||||||
EnterCriticalSection(&printer_handles_cs);
|
EnterCriticalSection(&printer_handles_cs);
|
||||||
|
|
||||||
if ((i > 0) && (i <= nb_printer_handles))
|
if ((i > 0) && (i <= nb_printer_handles))
|
||||||
printer = printer_handles[i - 1];
|
printer = printer_handles[i - 1];
|
||||||
|
|
||||||
|
|
||||||
if(printer)
|
if(printer)
|
||||||
{
|
{
|
||||||
struct list *cursor, *cursor2;
|
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)
|
if(printer->doc)
|
||||||
EndDocPrinter(hPrinter);
|
EndDocPrinter(hPrinter);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue