Displaying 1 result from an estimated 1 matches for "print_queue_snum".
2002 May 29
1
BUG: when using 'addprinter command'
...server.
When de wizards is at it's end it first gives a error of 'Access diened' when executing for the second time it gives 'Printer already existed'.
This has to do with the following pieces of code :
---- srv_spoolss_nt.c - spoolss_addprinterex_level_2 -----
if ((snum = print_queue_snum(printer->info_2->sharename)) != -1) {
DEBUG(5, ("_spoolss_addprinterex: Attempted to add a printer named [%s] when one already existed!\n",
printer->info_2->sharename));
free_a_printer(&printer, 2);
return WERR_PRINTER_ALREADY_EXISTS;
}
if (*lp_addprinter_cmd(...