summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-04-23 11:33:51 +0200
committerGünther Deschner <gd@samba.org>2010-04-23 11:41:25 +0200
commit698b7780c90687e9c1744e2435865dba1f18b274 (patch)
tree635d943cea88bed338eb9a498ea24fd501f86ab5 /source3
parent4be5d59c4f034ef9a125fe813e9e02ba5c2c833b (diff)
downloadsamba-698b7780c90687e9c1744e2435865dba1f18b274.tar.gz
samba-698b7780c90687e9c1744e2435865dba1f18b274.tar.bz2
samba-698b7780c90687e9c1744e2435865dba1f18b274.zip
s3-spoolss: make switch in _spoolss_AddPrinterDriver() a bit more clear.
Guenther
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index e8b5f8e85b..28e8a7d5e7 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -7519,11 +7519,13 @@ WERROR _spoolss_AddPrinterDriver(pipes_struct *p,
struct spoolss_AddPrinterDriverEx a;
switch (r->in.info_ctr->level) {
- case 6:
- case 8:
- return WERR_UNKNOWN_LEVEL;
- default:
+ case 2:
+ case 3:
+ case 4:
+ case 5:
break;
+ default:
+ return WERR_UNKNOWN_LEVEL;
}
a.in.servername = r->in.servername;