From aee462893b0a215ef72ae413d48f58fd8584a9c1 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Mon, 9 Feb 2009 15:15:26 +0100 Subject: s3-spoolss: use rpccli_spoolss_ReplyOpenPrinter. Guenther --- source3/rpc_server/srv_spoolss_nt.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'source3/rpc_server/srv_spoolss_nt.c') 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))); -- cgit