summaryrefslogtreecommitdiff
path: root/source4/rpc_server/spoolss
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-02-25 23:42:03 +0100
committerGünther Deschner <gd@samba.org>2009-02-25 23:48:29 +0100
commit7e01ec5560e8193c8e8853ba49c0ee625956c1fd (patch)
tree89f31bd948b30808df56bff8c9e652b7e8fc0c52 /source4/rpc_server/spoolss
parent8bf0c256d7f06fe7d0abf031921abd83e6956c8b (diff)
downloadsamba-7e01ec5560e8193c8e8853ba49c0ee625956c1fd.tar.gz
samba-7e01ec5560e8193c8e8853ba49c0ee625956c1fd.tar.bz2
samba-7e01ec5560e8193c8e8853ba49c0ee625956c1fd.zip
s4-spoolss: implement dcesrv_spoolss_AddJob which always is a dummy.
Guenther
Diffstat (limited to 'source4/rpc_server/spoolss')
-rw-r--r--source4/rpc_server/spoolss/dcesrv_spoolss.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/rpc_server/spoolss/dcesrv_spoolss.c b/source4/rpc_server/spoolss/dcesrv_spoolss.c
index 89b93bbaa4..f1ef2f0acb 100644
--- a/source4/rpc_server/spoolss/dcesrv_spoolss.c
+++ b/source4/rpc_server/spoolss/dcesrv_spoolss.c
@@ -546,7 +546,11 @@ static WERROR dcesrv_spoolss_EndDocPrinter(struct dcesrv_call_state *dce_call, T
static WERROR dcesrv_spoolss_AddJob(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
struct spoolss_AddJob *r)
{
- DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
+ if (r->in.level != 1) {
+ return WERR_UNKNOWN_LEVEL;
+ }
+
+ return WERR_INVALID_PARAM;
}