summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-01-21 10:38:23 +0100
committerGünther Deschner <gd@samba.org>2011-01-21 11:43:29 +0100
commit8db3258983bcf4ad73679a5bd5a554adc062a324 (patch)
treea15147c15f9e124aaa2d8dab0418a4ff39ae1438 /source3/rpc_server
parent621fb88e331bb247d1726e7ffcd2a3c4819e6e14 (diff)
downloadsamba-8db3258983bcf4ad73679a5bd5a554adc062a324.tar.gz
samba-8db3258983bcf4ad73679a5bd5a554adc062a324.tar.bz2
samba-8db3258983bcf4ad73679a5bd5a554adc062a324.zip
s3-spoolss: make it more obvious what winreg_create_printer() does.
Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Fri Jan 21 11:43:29 CET 2011 on sn-devel-104
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_spoolss_util.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/source3/rpc_server/srv_spoolss_util.c b/source3/rpc_server/srv_spoolss_util.c
index e38dca43be..79549ac90e 100644
--- a/source3/rpc_server/srv_spoolss_util.c
+++ b/source3/rpc_server/srv_spoolss_util.c
@@ -1457,8 +1457,7 @@ WERROR winreg_create_printer(TALLOC_CTX *mem_ctx,
goto done;
}
- switch (i) {
- case 1: {
+ if (strequal(subkeys[i], SPOOL_DSSPOOLER_KEY)) {
const char *dnssuffix;
const char *longname;
const char *uncname;
@@ -1565,9 +1564,6 @@ WERROR winreg_create_printer(TALLOC_CTX *mem_ctx,
if (!W_ERROR_IS_OK(result)) {
goto done;
}
- } /* case 1 */
- default:
- break;
}
if (is_valid_policy_hnd(&key_hnd)) {