summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-02-09 13:34:35 +0100
committerGünther Deschner <gd@samba.org>2009-02-09 19:10:29 +0100
commitd2b8fb99eedcfa16e1f68d3ca99df08e4503a598 (patch)
tree72200b5da469f55a1a8a765d09f55aea3ceb04d2 /source3/rpc_server
parentd87891ea3e1cf0c4e4d16ceb5b6b0a7c65cedf3f (diff)
downloadsamba-d2b8fb99eedcfa16e1f68d3ca99df08e4503a598.tar.gz
samba-d2b8fb99eedcfa16e1f68d3ca99df08e4503a598.tar.bz2
samba-d2b8fb99eedcfa16e1f68d3ca99df08e4503a598.zip
s3-spoolss: use rpccli_spoolss_ReplyClosePrinter.
Guenther
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index 04bbc97279..ec1a9a81da 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -150,6 +150,7 @@ static void free_spool_notify_option(SPOOL_NOTIFY_OPTION **pp)
static void srv_spoolss_replycloseprinter(int snum, POLICY_HND *handle)
{
WERROR result;
+ NTSTATUS status;
/*
* Tell the specific printing tdb we no longer want messages for this printer
@@ -165,11 +166,10 @@ static void srv_spoolss_replycloseprinter(int snum, POLICY_HND *handle)
return;
}
- result = rpccli_spoolss_reply_close_printer(notify_cli_pipe,
- talloc_tos(),
- handle);
-
- if (!W_ERROR_IS_OK(result))
+ status = rpccli_spoolss_ReplyClosePrinter(notify_cli_pipe, talloc_tos(),
+ handle,
+ &result);
+ if (!NT_STATUS_IS_OK(status) || !W_ERROR_IS_OK(result))
DEBUG(0,("srv_spoolss_replycloseprinter: reply_close_printer failed [%s].\n",
win_errstr(result)));