summaryrefslogtreecommitdiff
path: root/source4/librpc/rpc
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-11-17 02:58:10 +0000
committerAndrew Tridgell <tridge@samba.org>2003-11-17 02:58:10 +0000
commit90916de4a5303601a59938237a551d976cde0589 (patch)
treebff267e385e910b9ad69505da6964669d9318073 /source4/librpc/rpc
parentff9558bdf99901793dad9182254164e1472e9cfe (diff)
downloadsamba-90916de4a5303601a59938237a551d976cde0589.tar.gz
samba-90916de4a5303601a59938237a551d976cde0589.tar.bz2
samba-90916de4a5303601a59938237a551d976cde0589.zip
* more info levels for EnumPrinter
* use WERROR return type in spoolss EnumPrinter (This used to be commit 8301a6b6ad45f76a42d0fcab6347c187eee615a9)
Diffstat (limited to 'source4/librpc/rpc')
-rw-r--r--source4/librpc/rpc/rpc_spoolss.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/source4/librpc/rpc/rpc_spoolss.c b/source4/librpc/rpc/rpc_spoolss.c
index f7613b82d1..366072c42c 100644
--- a/source4/librpc/rpc/rpc_spoolss.c
+++ b/source4/librpc/rpc/rpc_spoolss.c
@@ -5,16 +5,10 @@
NTSTATUS dcerpc_spoolss_EnumPrinters(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct spoolss_EnumPrinters *r)
{
- NTSTATUS status;
- status = dcerpc_ndr_request(p, DCERPC_SPOOLSS_ENUMPRINTERS, mem_ctx,
- (ndr_push_fn_t) ndr_push_spoolss_EnumPrinters,
- (ndr_pull_fn_t) ndr_pull_spoolss_EnumPrinters,
- r);
- if (!NT_STATUS_IS_OK(status)) {
- return status;
- }
-
- return r->out.result;
+ return dcerpc_ndr_request(p, DCERPC_SPOOLSS_ENUMPRINTERS, mem_ctx,
+ (ndr_push_fn_t) ndr_push_spoolss_EnumPrinters,
+ (ndr_pull_fn_t) ndr_pull_spoolss_EnumPrinters,
+ r);
}
NTSTATUS dcerpc_spoolss_01(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct spoolss_01 *r)