mirror of
https://github.com/samba-team/samba.git
synced 2025-02-10 13:57:47 +03:00
merge from SAMBA_2_2
This commit is contained in:
parent
1e48f872a4
commit
606450f3cb
@ -1561,7 +1561,12 @@ WERROR _spoolss_getprinterdata(pipes_struct *p, SPOOL_Q_GETPRINTERDATA *q_u, SPO
|
||||
*data = NULL;
|
||||
}
|
||||
|
||||
return WERR_INVALID_PARAM;
|
||||
/* error depends on handle type */
|
||||
|
||||
if (Printer->printer_type == PRINTER_HANDLE_IS_PRINTSERVER)
|
||||
return WERR_INVALID_PARAM;
|
||||
else
|
||||
return WERR_BADFILE;
|
||||
}
|
||||
|
||||
if (*needed > *out_size)
|
||||
|
Loading…
x
Reference in New Issue
Block a user