From: Günther Deschner Date: Fri, 21 Jan 2011 09:38:23 +0000 (+0100) Subject: s3-spoolss: make it more obvious what winreg_create_printer() does. X-Git-Tag: tevent-0.9.11~1304 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8db3258983bcf4ad73679a5bd5a554adc062a324;p=thirdparty%2Fsamba.git s3-spoolss: make it more obvious what winreg_create_printer() does. Guenther Autobuild-User: Günther Deschner Autobuild-Date: Fri Jan 21 11:43:29 CET 2011 on sn-devel-104 --- diff --git a/source3/rpc_server/srv_spoolss_util.c b/source3/rpc_server/srv_spoolss_util.c index e38dca43be1..79549ac90ec 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)) {