From 16c3f6c7d0c925676bbc259fde79fff3a286c77d Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Thu, 28 Mar 2002 16:44:26 +0000 Subject: merge from SAMBA_2_2 (This used to be commit 606450f3cbe028a526ec6db9cea59d65324c3314) --- source3/rpc_server/srv_spoolss_nt.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'source3/rpc_server') 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) -- cgit