Commit 0aed4b1a authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Vitaly Lipatov

winspool.drv: Add more tracing to ClosePrinter

parent ccd5778a
...@@ -2857,15 +2857,18 @@ BOOL WINAPI ClosePrinter(HANDLE hPrinter) ...@@ -2857,15 +2857,18 @@ BOOL WINAPI ClosePrinter(HANDLE hPrinter)
LIST_FOR_EACH_SAFE(cursor, cursor2, &printer->queue->jobs) LIST_FOR_EACH_SAFE(cursor, cursor2, &printer->queue->jobs)
{ {
job_t *job = LIST_ENTRY(cursor, job_t, entry); job_t *job = LIST_ENTRY(cursor, job_t, entry);
TRACE("Scheduling Job: %p\n", job);
ScheduleJob(hPrinter, job->job_id); ScheduleJob(hPrinter, job->job_id);
} }
HeapFree(GetProcessHeap(), 0, printer->queue); HeapFree(GetProcessHeap(), 0, printer->queue);
} }
if (printer->backend_printer) { if (printer->backend_printer) {
TRACE("Closing Bankend printer\n");
backend->fpClosePrinter(printer->backend_printer); backend->fpClosePrinter(printer->backend_printer);
} }
TRACE("Freeing Printer entry\n");
free_printer_entry( printer ); free_printer_entry( printer );
printer_handles[i - 1] = NULL; printer_handles[i - 1] = NULL;
LeaveCriticalSection(&printer_handles_cs); LeaveCriticalSection(&printer_handles_cs);
......
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