diff options
author | Volker Lendecke <vl@samba.org> | 2010-08-08 14:23:12 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-08-08 16:03:24 +0200 |
commit | 862e888f71119b528d72290ad565d5a6203b4f17 (patch) | |
tree | bb18d7addef23dbaf679328989724dea3f570cee /source3/printing | |
parent | 51c47a330257c58e8c3b5db197df07cf3bf7d9a1 (diff) | |
download | samba-862e888f71119b528d72290ad565d5a6203b4f17.tar.gz samba-862e888f71119b528d72290ad565d5a6203b4f17.tar.bz2 samba-862e888f71119b528d72290ad565d5a6203b4f17.zip |
s3: Lift the smbd_messaging_context from printer_driver_in_use
Diffstat (limited to 'source3/printing')
-rw-r--r-- | source3/printing/nt_printing.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c index a5d36dab57..4efc25b2c4 100644 --- a/source3/printing/nt_printing.c +++ b/source3/printing/nt_printing.c @@ -1553,6 +1553,7 @@ bool driver_info_ctr_to_info8(struct spoolss_AddDriverInfoCtr *r, bool printer_driver_in_use(TALLOC_CTX *mem_ctx, struct auth_serversupplied_info *server_info, + struct messaging_context *msg_ctx, const struct spoolss_DriverInfo8 *r) { int snum; @@ -1574,9 +1575,9 @@ bool printer_driver_in_use(TALLOC_CTX *mem_ctx, continue; } - result = winreg_get_printer(mem_ctx, server_info, - smbd_messaging_context(), NULL, - lp_servicename(snum), &pinfo2); + result = winreg_get_printer(mem_ctx, server_info, msg_ctx, + NULL, lp_servicename(snum), + &pinfo2); if (!W_ERROR_IS_OK(result)) { continue; /* skip */ } @@ -1600,21 +1601,18 @@ bool printer_driver_in_use(TALLOC_CTX *mem_ctx, "Windows NT x86" version 2 or 3 left */ if (!strequal("Windows NT x86", r->architecture)) { - werr = winreg_get_driver(mem_ctx, server_info, - smbd_messaging_context(), + werr = winreg_get_driver(mem_ctx, server_info, msg_ctx, "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(), + werr = winreg_get_driver(mem_ctx, server_info, msg_ctx, "Windows NT x86", r->driver_name, 3, &driver); } else if (r->version == 3) { - werr = winreg_get_driver(mem_ctx, server_info, - smbd_messaging_context(), + werr = winreg_get_driver(mem_ctx, server_info, msg_ctx, "Windows NT x86", r->driver_name, 2, &driver); |