spoolss: fix DPD_DELETE_ALL_FILES error return
commit4bb3a17a66f8e8fbf0d9ba9c47ff8d75019bd39a
authorDavid Disseldorp <ddiss@samba.org>
Tue, 10 Jan 2012 17:21:42 +0000 (10 18:21 +0100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 23 Jan 2012 20:30:57 +0000 (23 21:30 +0100)
tree0642d78651e57f98eb4038f15d7b03fc2cb8523f
parentdc29cb3cbd94885c10fc797db68a823bf8a9cbfa
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)
source3/rpc_server/spoolss/srv_spoolss_nt.c