+ TRACE("(%s, %s, %p, %d, %d)\n",debugstr_w(printer->name)
+ ,debugstr_w(printer->printername)
+ ,printer->backend_printer
+ ,printer->queue->ref
+ ,list_count(&printer->queue->jobs));
TRACE() with the API parameters usually is the very first statement in
the API implementation, comma should be placed at the end of the statement,
not before.
Ok, I have remplaced this TRACE().
+ GetPrinterW(hPrinter, 2, NULL, 0,&needed);
+ pi2 = HeapAlloc(GetProcessHeap(), 0, needed);
+ GetPrinterW(hPrinter, 2, (LPBYTE)pi2, needed,&needed);
You need to check the return value of GetPrinterW() and handle the errors.
Ok