mirror of
https://github.com/samba-team/samba.git
synced 2025-01-15 23:24:37 +03:00
When opening a printserver use a global snum of -1.
Jeremy
This commit is contained in:
parent
1552db715d
commit
3f44cb6103
@ -825,8 +825,8 @@ uint32 _spoolss_open_printer_ex( pipes_struct *p, SPOOL_Q_OPEN_PRINTER_EX *q_u,
|
|||||||
}
|
}
|
||||||
else if ((printer_default->access_required & SERVER_ACCESS_ADMINISTER ) == SERVER_ACCESS_ADMINISTER) {
|
else if ((printer_default->access_required & SERVER_ACCESS_ADMINISTER ) == SERVER_ACCESS_ADMINISTER) {
|
||||||
|
|
||||||
if (!get_printer_snum(handle, &snum))
|
/* Printserver handles use global struct... */
|
||||||
return ERROR_INVALID_HANDLE;
|
snum = -1;
|
||||||
|
|
||||||
if (!lp_ms_add_printer_wizard()) {
|
if (!lp_ms_add_printer_wizard()) {
|
||||||
close_printer_handle(handle);
|
close_printer_handle(handle);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user