summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-08-08 17:31:38 +0200
committerVolker Lendecke <vl@samba.org>2010-08-08 18:09:39 +0200
commit18ff84b089cbbdf5c29fc678417090caa0ecd8d1 (patch)
tree8b538bfee967598995dc2507d1c14ac780e1d62e /source3/rpc_server
parent35c39b07cc4d284b8e6af5212c4d602909ac6f30 (diff)
downloadsamba-18ff84b089cbbdf5c29fc678417090caa0ecd8d1.tar.gz
samba-18ff84b089cbbdf5c29fc678417090caa0ecd8d1.tar.bz2
samba-18ff84b089cbbdf5c29fc678417090caa0ecd8d1.zip
s3: Lift the server_messaging_context from construct_printer_info6
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index 733307df56..080c5f350a 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -3760,6 +3760,7 @@ static WERROR construct_printer_info5(TALLOC_CTX *mem_ctx,
********************************************************************/
static WERROR construct_printer_info6(TALLOC_CTX *mem_ctx,
+ struct messaging_context *msg_ctx,
const struct spoolss_PrinterInfo2 *info2,
struct spoolss_PrinterInfo6 *r,
int snum)
@@ -3767,7 +3768,7 @@ static WERROR construct_printer_info6(TALLOC_CTX *mem_ctx,
int count;
print_status_struct status;
- count = print_queue_length(server_messaging_context(), snum, &status);
+ count = print_queue_length(msg_ctx, snum, &status);
r->status = nt_printq_status(status.status);
@@ -4331,7 +4332,7 @@ WERROR _spoolss_GetPrinter(struct pipes_struct *p,
&r->out.info->info5, snum);
break;
case 6:
- result = construct_printer_info6(p->mem_ctx, info2,
+ result = construct_printer_info6(p->mem_ctx, p->msg_ctx, info2,
&r->out.info->info6, snum);
break;
case 7: