From cb1ada9cc0ea3af889d874a2f3092560b0cec928 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Mon, 9 Feb 2009 22:12:15 +0100 Subject: s3-spoolss: use pidl for _spoolss_AddJob. Guenther --- source3/rpc_server/srv_spoolss_nt.c | 32 +++++++++----------------------- 1 file changed, 9 insertions(+), 23 deletions(-) (limited to 'source3/rpc_server/srv_spoolss_nt.c') diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c index ec1a9a81da..2550adeb3a 100644 --- a/source3/rpc_server/srv_spoolss_nt.c +++ b/source3/rpc_server/srv_spoolss_nt.c @@ -6611,24 +6611,21 @@ WERROR _spoolss_FindClosePrinterNotify(pipes_struct *p, return WERR_OK; } -/**************************************************************************** -****************************************************************************/ +/**************************************************************** + _spoolss_AddJob +****************************************************************/ -WERROR _spoolss_addjob(pipes_struct *p, SPOOL_Q_ADDJOB *q_u, SPOOL_R_ADDJOB *r_u) +WERROR _spoolss_AddJob(pipes_struct *p, + struct spoolss_AddJob *r) { - /* that's an [in out] buffer */ - - if (!q_u->buffer && (q_u->offered!=0)) { + if (!r->in.buffer && (r->in.offered != 0)) { return WERR_INVALID_PARAM; } - rpcbuf_move(q_u->buffer, &r_u->buffer); + /* this is what a NT server returns for AddJob. AddJob must fail on + * non-local printers */ - r_u->needed = 0; - return WERR_INVALID_PARAM; /* this is what a NT server - returns for AddJob. AddJob - must fail on non-local - printers */ + return WERR_INVALID_PARAM; } /**************************************************************************** @@ -10170,17 +10167,6 @@ WERROR _spoolss_ReadPrinter(pipes_struct *p, return WERR_NOT_SUPPORTED; } -/**************************************************************** - _spoolss_AddJob -****************************************************************/ - -WERROR _spoolss_AddJob(pipes_struct *p, - struct spoolss_AddJob *r) -{ - p->rng_fault_state = true; - return WERR_NOT_SUPPORTED; -} - /**************************************************************** _spoolss_ScheduleJob ****************************************************************/ -- cgit