1
0
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_create_printer

This commit is contained in:
Volker Lendecke 2010-08-08 09:34:23 +02:00
parent 2eb5863722
commit d7f8a6f82d
3 changed files with 6 additions and 2 deletions

View File

@ -1670,6 +1670,7 @@ WERROR _spoolss_OpenPrinterEx(struct pipes_struct *p,
winreg_create_printer(p->mem_ctx, winreg_create_printer(p->mem_ctx,
p->server_info, p->server_info,
p->msg_ctx,
Printer->servername, Printer->servername,
lp_const_servicename(snum)); lp_const_servicename(snum));
@ -3811,6 +3812,7 @@ static WERROR enum_all_printers_info_level(TALLOC_CTX *mem_ctx,
result = winreg_create_printer(mem_ctx, result = winreg_create_printer(mem_ctx,
server_info, server_info,
smbd_messaging_context(),
NULL, NULL,
printer); printer);
if (!W_ERROR_IS_OK(result)) { if (!W_ERROR_IS_OK(result)) {

View File

@ -1315,6 +1315,7 @@ static WERROR winreg_printer_ver_to_dword(const char *str, uint64_t *data)
WERROR winreg_create_printer(TALLOC_CTX *mem_ctx, WERROR winreg_create_printer(TALLOC_CTX *mem_ctx,
struct auth_serversupplied_info *server_info, struct auth_serversupplied_info *server_info,
struct messaging_context *msg_ctx,
const char *servername, const char *servername,
const char *sharename) const char *sharename)
{ {
@ -1347,7 +1348,7 @@ WERROR winreg_create_printer(TALLOC_CTX *mem_ctx,
result = winreg_printer_openkey(tmp_ctx, result = winreg_printer_openkey(tmp_ctx,
server_info, server_info,
smbd_messaging_context(), msg_ctx,
&winreg_pipe, &winreg_pipe,
path, path,
"", "",
@ -1369,7 +1370,7 @@ WERROR winreg_create_printer(TALLOC_CTX *mem_ctx,
/* Create the main key */ /* Create the main key */
result = winreg_printer_openkey(tmp_ctx, result = winreg_printer_openkey(tmp_ctx,
server_info, server_info,
smbd_messaging_context(), msg_ctx,
&winreg_pipe, &winreg_pipe,
path, path,
"", "",

View File

@ -73,6 +73,7 @@ enum spoolss_PrinterInfo2Mask {
WERROR winreg_create_printer(TALLOC_CTX *mem_ctx, WERROR winreg_create_printer(TALLOC_CTX *mem_ctx,
struct auth_serversupplied_info *server_info, struct auth_serversupplied_info *server_info,
struct messaging_context *msg_ctx,
const char *servername, const char *servername,
const char *sharename); const char *sharename);