summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Disseldorp <ddiss@samba.org>2012-01-10 18:21:42 +0100
committerKarolin Seeger <kseeger@samba.org>2012-01-23 21:30:57 +0100
commit4bb3a17a66f8e8fbf0d9ba9c47ff8d75019bd39a (patch)
tree0642d78651e57f98eb4038f15d7b03fc2cb8523f
parentdc29cb3cbd94885c10fc797db68a823bf8a9cbfa (diff)
downloadsamba-4bb3a17a66f8e8fbf0d9ba9c47ff8d75019bd39a.tar.gz
spoolss: fix DPD_DELETE_ALL_FILES error return
If DeletePrinterDriverEx is called with DPD_DELETE_ALL_FILES and files assigned to the to-be-deleted driver overlap with other drivers then an error is returned. Change the error code here to match Windows 2k8r2. Signed-off-by: David Disseldorp <ddiss@samba.org> Signed-off-by: Andreas Schneider <asn@samba.org> (cherry picked from commit 29c97b7132ac316327123f200a71e70317b2dbb9)
-rw-r--r--source3/rpc_server/spoolss/srv_spoolss_nt.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/rpc_server/spoolss/srv_spoolss_nt.c b/source3/rpc_server/spoolss/srv_spoolss_nt.c
index bfec3cc183a..2403f32d9db 100644
--- a/source3/rpc_server/spoolss/srv_spoolss_nt.c
+++ b/source3/rpc_server/spoolss/srv_spoolss_nt.c
@@ -2264,8 +2264,7 @@ WERROR _spoolss_DeletePrinterDriverEx(struct pipes_struct *p,
get_session_info_system(),
p->msg_ctx,
info)) {
- /* no idea of the correct error here */
- status = WERR_ACCESS_DENIED;
+ status = WERR_PRINTER_DRIVER_IN_USE;
goto done;
}