diff options
author | Andreas Schneider <asn@samba.org> | 2011-07-25 21:48:40 +0200 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2011-07-27 08:50:01 +0200 |
commit | f26441d8ba8cf89f6b08b64ae40e75d6ab2d2aa3 (patch) | |
tree | 36888cfff12f0c9e739341f3715af3361952881a | |
parent | fea4a3111be2550550194dfa56272feb5688407b (diff) | |
download | samba-f26441d8ba8cf89f6b08b64ae40e75d6ab2d2aa3.tar.gz samba-f26441d8ba8cf89f6b08b64ae40e75d6ab2d2aa3.tar.bz2 samba-f26441d8ba8cf89f6b08b64ae40e75d6ab2d2aa3.zip |
s3-spoolss: Use tmp_ctx everywhere in _spoolss_DeletePrinterDriverEx.
-rw-r--r-- | source3/rpc_server/spoolss/srv_spoolss_nt.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source3/rpc_server/spoolss/srv_spoolss_nt.c b/source3/rpc_server/spoolss/srv_spoolss_nt.c index b45712d936..9e241b576d 100644 --- a/source3/rpc_server/spoolss/srv_spoolss_nt.c +++ b/source3/rpc_server/spoolss/srv_spoolss_nt.c @@ -2257,7 +2257,7 @@ WERROR _spoolss_DeletePrinterDriverEx(struct pipes_struct *p, /* try for Win2k driver if "Windows NT x86" */ version = 3; - status = winreg_get_driver(info, b, + status = winreg_get_driver(tmp_ctx, b, r->in.architecture, r->in.driver, version, &info); @@ -2267,7 +2267,7 @@ WERROR _spoolss_DeletePrinterDriverEx(struct pipes_struct *p, } } - if (printer_driver_in_use(info, + if (printer_driver_in_use(tmp_ctx, get_session_info_system(), p->msg_ctx, info)) { @@ -2293,7 +2293,7 @@ WERROR _spoolss_DeletePrinterDriverEx(struct pipes_struct *p, if (delete_files && (r->in.delete_flags & DPD_DELETE_ALL_FILES) && - printer_driver_files_in_use(info, + printer_driver_files_in_use(tmp_ctx, get_session_info_system(), p->msg_ctx, info)) { @@ -2306,7 +2306,7 @@ WERROR _spoolss_DeletePrinterDriverEx(struct pipes_struct *p, /* also check for W32X86/3 if necessary; maybe we already have? */ if ( (version == 2) && ((r->in.delete_flags & DPD_DELETE_SPECIFIC_VERSION) != DPD_DELETE_SPECIFIC_VERSION) ) { - status = winreg_get_driver(info, b, + status = winreg_get_driver(tmp_ctx, b, r->in.architecture, r->in.driver, 3, &info_win2k); if (W_ERROR_IS_OK(status)) { @@ -2326,7 +2326,7 @@ WERROR _spoolss_DeletePrinterDriverEx(struct pipes_struct *p, /* if we get to here, we now have 2 driver info structures to remove */ /* remove the Win2k driver first*/ - status = winreg_del_driver(info, b, + status = winreg_del_driver(tmp_ctx, b, info_win2k, 3); @@ -2348,7 +2348,7 @@ WERROR _spoolss_DeletePrinterDriverEx(struct pipes_struct *p, } } - status = winreg_del_driver(info, b, + status = winreg_del_driver(tmp_ctx, b, info, version); if (!W_ERROR_IS_OK(status)) { |