summaryrefslogtreecommitdiff
path: root/source3/rpcclient
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-11-15 22:16:51 +0100
committerGünther Deschner <gd@samba.org>2009-02-07 01:52:28 +0100
commitb8cd20cd5c3ff537d48a05dd04886ced107da7ae (patch)
treed6803a62be88f757dd715edc4c7b713a5adf8b56 /source3/rpcclient
parent9bfca0bea0521b41c7bbf1ccbd35ce2e4cbb31ef (diff)
downloadsamba-b8cd20cd5c3ff537d48a05dd04886ced107da7ae.tar.gz
samba-b8cd20cd5c3ff537d48a05dd04886ced107da7ae.tar.bz2
samba-b8cd20cd5c3ff537d48a05dd04886ced107da7ae.zip
s3-spoolss: use rpccli_spoolss_DeleteForm.
Guenther
Diffstat (limited to 'source3/rpcclient')
-rw-r--r--source3/rpcclient/cmd_spoolss.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/source3/rpcclient/cmd_spoolss.c b/source3/rpcclient/cmd_spoolss.c
index 057fc25123..8003180fda 100644
--- a/source3/rpcclient/cmd_spoolss.c
+++ b/source3/rpcclient/cmd_spoolss.c
@@ -1869,6 +1869,7 @@ static WERROR cmd_spoolss_deleteform(struct rpc_pipe_client *cli,
{
POLICY_HND handle;
WERROR werror;
+ NTSTATUS status;
char *servername = NULL, *printername = NULL;
bool got_handle = False;
@@ -1901,7 +1902,13 @@ static WERROR cmd_spoolss_deleteform(struct rpc_pipe_client *cli,
/* Delete the form */
- werror = rpccli_spoolss_deleteform(cli, mem_ctx, &handle, argv[2]);
+ status = rpccli_spoolss_DeleteForm(cli, mem_ctx,
+ &handle,
+ argv[2],
+ &werror);
+ if (!NT_STATUS_IS_OK(status)) {
+ return ntstatus_to_werror(status);
+ }
done:
if (got_handle)