summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-08-08 10:52:19 +0200
committerVolker Lendecke <vl@samba.org>2010-08-08 16:03:19 +0200
commitae6a3ac22503fe342e7e04f83dd6c7a449e204ea (patch)
tree2b5922d6e9706a8c2fb2c6d4dd0044bf398ec0f2 /source3/printing
parent3a85d0c79a660555b5dfaaf38340900edb624d3f (diff)
downloadsamba-ae6a3ac22503fe342e7e04f83dd6c7a449e204ea.tar.gz
samba-ae6a3ac22503fe342e7e04f83dd6c7a449e204ea.tar.bz2
samba-ae6a3ac22503fe342e7e04f83dd6c7a449e204ea.zip
s3: Lift the smbd_messaging_context from winreg_get_driver
Diffstat (limited to 'source3/printing')
-rw-r--r--source3/printing/nt_printing.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c
index 29d5bd3e05..d12f168145 100644
--- a/source3/printing/nt_printing.c
+++ b/source3/printing/nt_printing.c
@@ -1601,17 +1601,20 @@ bool printer_driver_in_use(TALLOC_CTX *mem_ctx,
if (!strequal("Windows NT x86", r->architecture)) {
werr = winreg_get_driver(mem_ctx, server_info,
+ smbd_messaging_context(),
"Windows NT x86",
r->driver_name,
DRIVER_ANY_VERSION,
&driver);
} else if (r->version == 2) {
werr = winreg_get_driver(mem_ctx, server_info,
+ smbd_messaging_context(),
"Windows NT x86",
r->driver_name,
3, &driver);
} else if (r->version == 3) {
werr = winreg_get_driver(mem_ctx, server_info,
+ smbd_messaging_context(),
"Windows NT x86",
r->driver_name,
2, &driver);
@@ -1819,6 +1822,7 @@ bool printer_driver_files_in_use(TALLOC_CTX *mem_ctx,
driver = NULL;
result = winreg_get_driver(mem_ctx, server_info,
+ smbd_messaging_context(),
info->architecture, drivers[i],
version, &driver);
if (!W_ERROR_IS_OK(result)) {