summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-08-08 09:32:12 +0200
committerVolker Lendecke <vl@samba.org>2010-08-08 16:03:16 +0200
commit2eb58637221899b63da4eb819d23284031f27976 (patch)
tree5f6a079ea93df2730c515e9fa0059f2a746946d2 /source3
parentc29e1c3e41ff0e85f053b2c40dae0f27098bcd79 (diff)
downloadsamba-2eb58637221899b63da4eb819d23284031f27976.tar.gz
samba-2eb58637221899b63da4eb819d23284031f27976.tar.bz2
samba-2eb58637221899b63da4eb819d23284031f27976.zip
s3: Lift the smbd_messaging_context from winreg_printer_opendriver
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/srv_spoolss_util.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_spoolss_util.c b/source3/rpc_server/srv_spoolss_util.c
index d609281ba1..c4c612a729 100644
--- a/source3/rpc_server/srv_spoolss_util.c
+++ b/source3/rpc_server/srv_spoolss_util.c
@@ -1068,6 +1068,7 @@ static WERROR winreg_printer_write_multi_sz(TALLOC_CTX *mem_ctx,
static WERROR winreg_printer_opendriver(TALLOC_CTX *mem_ctx,
struct auth_serversupplied_info *server_info,
+ struct messaging_context *msg_ctx,
const char *drivername,
const char *architecture,
uint32_t version,
@@ -1089,7 +1090,7 @@ static WERROR winreg_printer_opendriver(TALLOC_CTX *mem_ctx,
result = winreg_printer_openkey(mem_ctx,
server_info,
- smbd_messaging_context(),
+ msg_ctx,
winreg_pipe,
key_name,
drivername,
@@ -3769,6 +3770,7 @@ WERROR winreg_add_driver(TALLOC_CTX *mem_ctx,
result = winreg_printer_opendriver(tmp_ctx,
server_info,
+ smbd_messaging_context(),
info8.driver_name,
info8.architecture,
info8.version,
@@ -3995,6 +3997,7 @@ WERROR winreg_get_driver(TALLOC_CTX *mem_ctx,
/* look for Win2k first and then for NT4 */
result = winreg_printer_opendriver(tmp_ctx,
server_info,
+ smbd_messaging_context(),
driver_name,
architecture,
3,
@@ -4005,6 +4008,7 @@ WERROR winreg_get_driver(TALLOC_CTX *mem_ctx,
if (!W_ERROR_IS_OK(result)) {
result = winreg_printer_opendriver(tmp_ctx,
server_info,
+ smbd_messaging_context(),
driver_name,
architecture,
2,
@@ -4017,6 +4021,7 @@ WERROR winreg_get_driver(TALLOC_CTX *mem_ctx,
/* ok normal case */
result = winreg_printer_opendriver(tmp_ctx,
server_info,
+ smbd_messaging_context(),
driver_name,
architecture,
driver_version,
@@ -4253,6 +4258,7 @@ WERROR winreg_del_driver(TALLOC_CTX *mem_ctx,
/* test that the key exists */
result = winreg_printer_opendriver(tmp_ctx,
server_info,
+ smbd_messaging_context(),
info8->driver_name,
info8->architecture,
version,
@@ -4345,6 +4351,7 @@ WERROR winreg_get_driver_list(TALLOC_CTX *mem_ctx,
* parent of all drivers for this architecture and version */
result = winreg_printer_opendriver(tmp_ctx,
server_info,
+ smbd_messaging_context(),
NULL,
architecture,
version,