[PATCH 4/5] programs/regsvr32: Remove unneeded string.h include and call to strlen

Hugh McMaster hugh.mcmaster at outlook.com
Thu Jun 18 20:26:48 CDT 2015


---
 programs/regsvr32/regsvr32.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/programs/regsvr32/regsvr32.c b/programs/regsvr32/regsvr32.c
index e75987a..b789033 100644
--- a/programs/regsvr32/regsvr32.c
+++ b/programs/regsvr32/regsvr32.c
@@ -51,7 +51,6 @@
 #include "config.h"
 #include "wine/port.h"
 
-#include <string.h>
 #include <windows.h>
 #include <ole2.h>
 #include "regsvr32.h"
@@ -277,7 +276,7 @@ int wmain(int argc, WCHAR* argv[])
                 break;
             case 'i':
                 CallInstall = TRUE;
-                wsCommandLine = parse_command_line(argv[i] + strlen("/i"));
+                wsCommandLine = parse_command_line(argv[i] + 2); /* argv[i] + strlen("/i") */
                 if (!wsCommandLine)
                     wsCommandLine = EmptyLine;
                 break;
-- 
1.9.1




More information about the wine-patches mailing list