diff options
author | Andrew Tridgell <tridge@samba.org> | 2003-11-17 02:58:10 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2003-11-17 02:58:10 +0000 |
commit | 90916de4a5303601a59938237a551d976cde0589 (patch) | |
tree | bff267e385e910b9ad69505da6964669d9318073 /source4/librpc/rpc | |
parent | ff9558bdf99901793dad9182254164e1472e9cfe (diff) | |
download | samba-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.c | 14 |
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) |