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:
parent
1c82217c01
commit
aee462893b
@ -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)));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user