summaryrefslogtreecommitdiff
path: root/source3/rpc_server/srv_spoolss_nt.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-08-08 10:29:50 +0200
committerVolker Lendecke <vl@samba.org>2010-08-08 16:03:17 +0200
commit747f5c531862ba3f06f1b8c54eed5c01e549efc8 (patch)
tree1a628f44317c60c3ffa2a9904c76409f3612494d /source3/rpc_server/srv_spoolss_nt.c
parent3ccdbc4119ca50b4a745b820f05f0a0f0965e827 (diff)
downloadsamba-747f5c531862ba3f06f1b8c54eed5c01e549efc8.tar.gz
samba-747f5c531862ba3f06f1b8c54eed5c01e549efc8.tar.bz2
samba-747f5c531862ba3f06f1b8c54eed5c01e549efc8.zip
s3: Lift the smbd_messaging_context from winreg_delete_printer_key
Diffstat (limited to 'source3/rpc_server/srv_spoolss_nt.c')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index 31dca0458a..06c1e55f0d 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -381,7 +381,7 @@ static WERROR delete_printer_handle(struct pipes_struct *p, struct policy_handle
done on the handle already */
result = winreg_delete_printer_key(p->mem_ctx, p->server_info,
- Printer->sharename, "");
+ p->msg_ctx, Printer->sharename, "");
if (!W_ERROR_IS_OK(result)) {
DEBUG(3,("Error deleting printer %s\n", Printer->sharename));
return WERR_BADFID;
@@ -1764,6 +1764,7 @@ WERROR _spoolss_DeletePrinter(struct pipes_struct *p,
if (get_printer_snum(p, r->in.handle, &snum, NULL)) {
winreg_delete_printer_key(p->mem_ctx,
p->server_info,
+ p->msg_ctx,
lp_const_servicename(snum),
"");
}
@@ -8953,6 +8954,7 @@ WERROR _spoolss_DeletePrinterKey(struct pipes_struct *p,
/* delete the key and all subkeys */
status = winreg_delete_printer_key(p->mem_ctx,
p->server_info,
+ p->msg_ctx,
printer,
r->in.key_name);
if (W_ERROR_IS_OK(status)) {