diff options
author | Günther Deschner <gd@samba.org> | 2010-04-23 11:33:51 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2010-04-23 11:41:25 +0200 |
commit | 698b7780c90687e9c1744e2435865dba1f18b274 (patch) | |
tree | 635d943cea88bed338eb9a498ea24fd501f86ab5 /source3/rpc_server | |
parent | 4be5d59c4f034ef9a125fe813e9e02ba5c2c833b (diff) | |
download | samba-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/rpc_server')
-rw-r--r-- | source3/rpc_server/srv_spoolss_nt.c | 10 |
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; |