summaryrefslogtreecommitdiff
path: root/source3/rpc_server/spoolss
diff options
context:
space:
mode:
authorDavid Disseldorp <ddiss@samba.org>2012-01-10 18:21:42 +0100
committerDavid Disseldorp <ddiss@samba.org>2012-01-11 13:56:44 +0100
commit8dc9fbd3af0008aac70194ab69f50352a13b9230 (patch)
tree65f5e456df968900a9a5751c2ba32eff7660912e /source3/rpc_server/spoolss
parentfc2c76f9218b1e92982b4b1813f44b9010dcd842 (diff)
downloadsamba-8dc9fbd3af0008aac70194ab69f50352a13b9230.tar.gz
samba-8dc9fbd3af0008aac70194ab69f50352a13b9230.tar.bz2
samba-8dc9fbd3af0008aac70194ab69f50352a13b9230.zip
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>
Diffstat (limited to 'source3/rpc_server/spoolss')
-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 87df5659c7..7a51703c01 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;
}