mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
s3: Lift the smbd_messaging_context from winreg_update_printer
This commit is contained in:
parent
d7f8a6f82d
commit
9751d7613b
@ -264,6 +264,7 @@ WERROR nt_printer_publish(TALLOC_CTX *mem_ctx,
|
||||
sinfo2->attributes = pinfo2->attributes;
|
||||
|
||||
win_rc = winreg_update_printer(mem_ctx, server_info,
|
||||
smbd_messaging_context(),
|
||||
pinfo2->sharename, info2_mask,
|
||||
sinfo2, NULL, NULL);
|
||||
if (!W_ERROR_IS_OK(win_rc)) {
|
||||
|
@ -6002,6 +6002,7 @@ static WERROR update_printer(struct pipes_struct *p,
|
||||
}
|
||||
result = winreg_update_printer(tmp_ctx,
|
||||
p->server_info,
|
||||
p->msg_ctx,
|
||||
printer->sharename,
|
||||
printer_mask,
|
||||
printer,
|
||||
@ -6085,6 +6086,7 @@ static WERROR update_printer_devmode(struct pipes_struct *p,
|
||||
|
||||
return winreg_update_printer(p->mem_ctx,
|
||||
p->server_info,
|
||||
p->msg_ctx,
|
||||
lp_const_servicename(snum),
|
||||
info2_mask,
|
||||
NULL,
|
||||
@ -7314,6 +7316,7 @@ static WERROR spoolss_addprinterex_level_2(struct pipes_struct *p,
|
||||
|
||||
err = winreg_update_printer(p->mem_ctx,
|
||||
p->server_info,
|
||||
p->msg_ctx,
|
||||
info2->sharename,
|
||||
info2_mask,
|
||||
info2,
|
||||
|
@ -1603,6 +1603,7 @@ WERROR winreg_create_printer(TALLOC_CTX *mem_ctx,
|
||||
|
||||
result = winreg_update_printer(tmp_ctx,
|
||||
server_info,
|
||||
msg_ctx,
|
||||
sharename,
|
||||
info2_mask,
|
||||
info2,
|
||||
@ -1625,6 +1626,7 @@ done:
|
||||
|
||||
WERROR winreg_update_printer(TALLOC_CTX *mem_ctx,
|
||||
struct auth_serversupplied_info *server_info,
|
||||
struct messaging_context *msg_ctx,
|
||||
const char *sharename,
|
||||
uint32_t info2_mask,
|
||||
struct spoolss_SetPrinterInfo2 *info2,
|
||||
@ -1657,7 +1659,7 @@ WERROR winreg_update_printer(TALLOC_CTX *mem_ctx,
|
||||
|
||||
result = winreg_printer_openkey(tmp_ctx,
|
||||
server_info,
|
||||
smbd_messaging_context(),
|
||||
msg_ctx,
|
||||
&winreg_pipe,
|
||||
path,
|
||||
"",
|
||||
|
@ -101,6 +101,7 @@ WERROR winreg_create_printer(TALLOC_CTX *mem_ctx,
|
||||
*/
|
||||
WERROR winreg_update_printer(TALLOC_CTX *mem_ctx,
|
||||
struct auth_serversupplied_info *server_info,
|
||||
struct messaging_context *msg_ctx,
|
||||
const char *sharename,
|
||||
uint32_t info2_mask,
|
||||
struct spoolss_SetPrinterInfo2 *info2,
|
||||
|
Loading…
Reference in New Issue
Block a user