winspool: Improve trace for ClosePrinter.

This commit is contained in:
Detlef Riekenberg 2007-01-15 05:38:22 +01:00 committed by Alexandre Julliard
parent 5012fa06fc
commit 619621d9ea
1 changed files with 6 additions and 1 deletions

View File

@ -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);