1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-09 08:58:35 +03:00

s3-spoolss: use rpccli_spoolss_ReplyOpenPrinter.

Guenther
This commit is contained in:
Günther Deschner 2009-02-09 15:15:26 +01:00
parent 1c82217c01
commit aee462893b

View File

@ -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)));