From d62db5b7d3b6418e870b87c8fd33a1587ecc1728 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 10 Jun 2005 15:39:23 +0000 Subject: [PATCH] r7465: - return empty lists for now - return WERR_NOT_SUPPORTED on AddPort() (we pass the RPC-SPOOLSS test now :-) metze --- source/rpc_server/spoolss/dcesrv_spoolss.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/source/rpc_server/spoolss/dcesrv_spoolss.c b/source/rpc_server/spoolss/dcesrv_spoolss.c index 41143e6f9bb..f42710396fd 100644 --- a/source/rpc_server/spoolss/dcesrv_spoolss.c +++ b/source/rpc_server/spoolss/dcesrv_spoolss.c @@ -221,7 +221,9 @@ static WERROR spoolss_GetJob(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem static WERROR spoolss_EnumJobs(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, struct spoolss_EnumJobs *r) { - DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR); + *r->out.buf_size = 0; + + return WERR_OK; } @@ -390,7 +392,9 @@ static WERROR spoolss_AddPrintProcessor(struct dcesrv_call_state *dce_call, TALL static WERROR spoolss_EnumPrintProcessors(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, struct spoolss_EnumPrintProcessors *r) { - DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR); + *r->out.buf_size = 0; + + return WERR_OK; } @@ -753,7 +757,9 @@ static WERROR spoolss_EnumPorts(struct dcesrv_call_state *dce_call, TALLOC_CTX * static WERROR spoolss_EnumMonitors(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, struct spoolss_EnumMonitors *r) { - DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR); + *r->out.buf_size = 0; + + return WERR_OK; } @@ -763,7 +769,7 @@ static WERROR spoolss_EnumMonitors(struct dcesrv_call_state *dce_call, TALLOC_CT static WERROR spoolss_AddPort(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, struct spoolss_AddPort *r) { - DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR); + return WERR_NOT_SUPPORTED; }