From 8dc9fbd3af0008aac70194ab69f50352a13b9230 Mon Sep 17 00:00:00 2001 From: David Disseldorp Date: Tue, 10 Jan 2012 18:21:42 +0100 Subject: [PATCH] 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 Signed-off-by: Andreas Schneider --- source3/rpc_server/spoolss/srv_spoolss_nt.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source3/rpc_server/spoolss/srv_spoolss_nt.c b/source3/rpc_server/spoolss/srv_spoolss_nt.c index 87df5659c78..7a51703c019 100644 --- a/source3/rpc_server/spoolss/srv_spoolss_nt.c +++ b/source3/rpc_server/spoolss/srv_spoolss_nt.c @@ -2272,8 +2272,7 @@ WERROR _spoolss_DeletePrinterDriverEx(struct pipes_struct *p, printer_driver_files_in_use(tmp_ctx, b, info)) { - /* no idea of the correct error here */ - status = WERR_ACCESS_DENIED; + status = WERR_PRINTER_DRIVER_IN_USE; goto done; } -- 2.11.4.GIT