[PATCH 1/5] programs/regsvr32: Move options to make code more logical

Hugh McMaster hugh.mcmaster at outlook.com
Thu May 28 06:14:16 CDT 2015


---
 programs/regsvr32/regsvr32.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/programs/regsvr32/regsvr32.c b/programs/regsvr32/regsvr32.c
index 666de43..f823f5b 100644
--- a/programs/regsvr32/regsvr32.c
+++ b/programs/regsvr32/regsvr32.c
@@ -225,6 +225,10 @@ int main(int argc, char* argv[])
                 Unregister = TRUE;
         else if ((!strcasecmp(argv[i], "/s"))||(!strcasecmp(argv[i], "-s")))
                 Silent = TRUE;
+        else if((!strcasecmp(argv[i], "/n"))||(!strcasecmp(argv[i], "-n")))
+            CallRegister = FALSE;
+        else if((!strcasecmp(argv[i], "/c"))||(!strcasecmp(argv[i], "-c")))
+            /* console output */;
         else if ((!strncasecmp(argv[i], "/i", strlen("/i")))||(!strncasecmp(argv[i], "-i", strlen("-i"))))
         {
             CHAR* command_line = argv[i] + strlen("/i");
@@ -267,10 +271,6 @@ int main(int argc, char* argv[])
                 wsCommandLine = EmptyLine;
             }
         }
-        else if((!strcasecmp(argv[i], "/n"))||(!strcasecmp(argv[i], "-n")))
-            CallRegister = FALSE;
-        else if((!strcasecmp(argv[i], "/c"))||(!strcasecmp(argv[i], "-c")))
-            /* console output */;
         else if (argv[i][0] == '/' && (!argv[i][2] || argv[i][2] == ':'))
         {
             output_write(STRING_UNRECOGNIZED_SWITCH, argv[i]);
-- 
1.9.1




More information about the wine-patches mailing list