diff options
author | Günther Deschner <gd@samba.org> | 2009-02-09 15:15:26 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-02-10 23:57:30 +0100 |
commit | aee462893b0a215ef72ae413d48f58fd8584a9c1 (patch) | |
tree | a3ee431d35a77b83e3b473849b914f6ee1b24d1b | |
parent | 1c82217c01e516ad7ca78b25f659d4e38b2a2753 (diff) | |
download | samba-aee462893b0a215ef72ae413d48f58fd8584a9c1.tar.gz samba-aee462893b0a215ef72ae413d48f58fd8584a9c1.tar.bz2 samba-aee462893b0a215ef72ae413d48f58fd8584a9c1.zip |
s3-spoolss: use rpccli_spoolss_ReplyOpenPrinter.
Guenther
-rw-r--r-- | source3/rpc_server/srv_spoolss_nt.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c index b1c551b41b..36984fc209 100644 --- a/source3/rpc_server/srv_spoolss_nt.c +++ b/source3/rpc_server/srv_spoolss_nt.c @@ -2589,6 +2589,7 @@ static bool srv_spoolss_replyopenprinter(int snum, const char *printer, POLICY_HND *handle, struct sockaddr_storage *client_ss) { WERROR result; + NTSTATUS status; /* * If it's the first connection, contact the client @@ -2620,14 +2621,15 @@ static bool srv_spoolss_replyopenprinter(int snum, const char *printer, smb_connections++; - result = rpccli_spoolss_reply_open_printer(notify_cli_pipe, - talloc_tos(), - printer, - localprinter, - type, - handle); - - if (!W_ERROR_IS_OK(result)) + status = rpccli_spoolss_ReplyOpenPrinter(notify_cli_pipe, talloc_tos(), + printer, + localprinter, + type, + 0, + NULL, + handle, + &result); + if (!NT_STATUS_IS_OK(status) || !W_ERROR_IS_OK(result)) DEBUG(5,("srv_spoolss_reply_open_printer: Client RPC returned [%s]\n", win_errstr(result))); |