diff options
author | Günther Deschner <gd@samba.org> | 2009-02-09 13:34:35 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-02-09 19:10:29 +0100 |
commit | d2b8fb99eedcfa16e1f68d3ca99df08e4503a598 (patch) | |
tree | 72200b5da469f55a1a8a765d09f55aea3ceb04d2 | |
parent | d87891ea3e1cf0c4e4d16ceb5b6b0a7c65cedf3f (diff) | |
download | samba-d2b8fb99eedcfa16e1f68d3ca99df08e4503a598.tar.gz samba-d2b8fb99eedcfa16e1f68d3ca99df08e4503a598.tar.xz samba-d2b8fb99eedcfa16e1f68d3ca99df08e4503a598.zip |
s3-spoolss: use rpccli_spoolss_ReplyClosePrinter.
Guenther
-rw-r--r-- | source3/rpc_server/srv_spoolss_nt.c | 10 |
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 04bbc972793..ec1a9a81da9 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))); |