summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-08-08 10:58:04 +0200
committerVolker Lendecke <vl@samba.org>2010-08-08 16:03:19 +0200
commit5b0a36b552f44e6fb6110588773005a3f7c1d739 (patch)
tree64819296de23bb7a3dad6ddc4e9d221920ef6434 /source3
parentf776d107a1459d943a1f5797d48d58ae24d50c39 (diff)
downloadsamba-5b0a36b552f44e6fb6110588773005a3f7c1d739.tar.gz
samba-5b0a36b552f44e6fb6110588773005a3f7c1d739.tar.bz2
samba-5b0a36b552f44e6fb6110588773005a3f7c1d739.zip
s3: Lift the smbd_messaging_context from construct_printer_info0
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index 5e24b76cd2..14f2ef9c47 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -3459,6 +3459,7 @@ done:
static WERROR construct_printer_info0(TALLOC_CTX *mem_ctx,
struct auth_serversupplied_info *server_info,
+ struct messaging_context *msg_ctx,
struct spoolss_PrinterInfo2 *info2,
struct spoolss_PrinterInfo0 *r,
int snum)
@@ -3523,8 +3524,7 @@ static WERROR construct_printer_info0(TALLOC_CTX *mem_ctx,
r->high_part_total_bytes = 0x0;
/* ChangeID in milliseconds*/
- winreg_printer_get_changeid(mem_ctx, server_info,
- smbd_messaging_context(),
+ winreg_printer_get_changeid(mem_ctx, server_info, msg_ctx,
info2->sharename, &r->change_id);
r->last_error = WERR_OK;
@@ -3853,7 +3853,9 @@ static WERROR enum_all_printers_info_level(TALLOC_CTX *mem_ctx,
switch (level) {
case 0:
- result = construct_printer_info0(info, server_info, info2,
+ result = construct_printer_info0(info, server_info,
+ smbd_messaging_context(),
+ info2,
&info[count].info0, snum);
break;
case 1: