summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2002-03-28 16:44:26 +0000
committerGerald Carter <jerry@samba.org>2002-03-28 16:44:26 +0000
commit16c3f6c7d0c925676bbc259fde79fff3a286c77d (patch)
tree384291390fa3e99d4fc4bdde9cfaf3afffa1e53c
parent230e36ccded13f5bf0e95ff93e6aa65ad7e368ec (diff)
downloadsamba-16c3f6c7d0c925676bbc259fde79fff3a286c77d.tar.gz
samba-16c3f6c7d0c925676bbc259fde79fff3a286c77d.tar.bz2
samba-16c3f6c7d0c925676bbc259fde79fff3a286c77d.zip
merge from SAMBA_2_2
(This used to be commit 606450f3cbe028a526ec6db9cea59d65324c3314)
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index e119825f31..60c8fdfb7b 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -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)