1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-04 16:58:42 +03:00

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>
This commit is contained in:
David Disseldorp 2012-01-10 18:21:42 +01:00
parent fc2c76f921
commit 8dc9fbd3af

View File

@ -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;
}