[PATCH] regsvr32: /n and /u /n should be handled as invalid flags

Hugh McMaster hugh.mcmaster at outlook.com
Wed Sep 2 00:32:07 CDT 2015


Fixes 20 test failures.
---
 programs/regsvr32/regsvr32.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/programs/regsvr32/regsvr32.c b/programs/regsvr32/regsvr32.c
index 8d1ab17..f75825b 100644
--- a/programs/regsvr32/regsvr32.c
+++ b/programs/regsvr32/regsvr32.c
@@ -272,6 +272,9 @@ int wmain(int argc, WCHAR* argv[])
         }
     }
 
+    if (!CallInstall && !CallRegister) /* flags: /n or /u /n */
+        return 1;
+
     for (i = 1; i < argc; i++)
     {
         if (argv[i])
-- 
1.9.1




More information about the wine-patches mailing list