summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-08-08 10:08:22 +0200
committerVolker Lendecke <vl@samba.org>2010-08-08 16:03:16 +0200
commitbd8a1d8a8601474e1cf7cec459d05e2fe45b28b0 (patch)
tree993bbaddf2ccbfcf6f955fdcbf5c80e7080ab849 /source3/printing
parent9751d7613b3db543a2cdb515c597d9600531dd76 (diff)
downloadsamba-bd8a1d8a8601474e1cf7cec459d05e2fe45b28b0.tar.gz
samba-bd8a1d8a8601474e1cf7cec459d05e2fe45b28b0.tar.bz2
samba-bd8a1d8a8601474e1cf7cec459d05e2fe45b28b0.zip
s3: Lift the smbd_messaging_context from winreg_get_printer
Diffstat (limited to 'source3/printing')
-rw-r--r--source3/printing/nt_printing.c4
-rw-r--r--source3/printing/nt_printing_ads.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c
index ae44d5760f..3a35522e29 100644
--- a/source3/printing/nt_printing.c
+++ b/source3/printing/nt_printing.c
@@ -1574,7 +1574,8 @@ bool printer_driver_in_use(TALLOC_CTX *mem_ctx,
continue;
}
- result = winreg_get_printer(mem_ctx, server_info, NULL,
+ result = winreg_get_printer(mem_ctx, server_info,
+ smbd_messaging_context(), NULL,
lp_servicename(snum), &pinfo2);
if (!W_ERROR_IS_OK(result)) {
continue; /* skip */
@@ -2172,6 +2173,7 @@ bool print_time_access_check(struct auth_serversupplied_info *server_info,
uint32 mins;
result = winreg_get_printer(NULL, server_info,
+ smbd_messaging_context(),
NULL, servicename, &pinfo2);
if (!W_ERROR_IS_OK(result)) {
return False;
diff --git a/source3/printing/nt_printing_ads.c b/source3/printing/nt_printing_ads.c
index 66d66a30a1..12993a9bf9 100644
--- a/source3/printing/nt_printing_ads.c
+++ b/source3/printing/nt_printing_ads.c
@@ -354,7 +354,8 @@ WERROR check_published_printers(void)
continue;
}
- result = winreg_get_printer(tmp_ctx, server_info, NULL,
+ result = winreg_get_printer(tmp_ctx, server_info,
+ smbd_messaging_context(), NULL,
lp_servicename(snum), &pinfo2);
if (!W_ERROR_IS_OK(result)) {
continue;
@@ -388,6 +389,7 @@ bool is_printer_published(TALLOC_CTX *mem_ctx,
NTSTATUS status;
result = winreg_get_printer(mem_ctx, server_info,
+ smbd_messaging_context(),
servername, printer, &pinfo2);
if (!W_ERROR_IS_OK(result)) {
return false;