[PATCH 4/4] programs/regsvr32: Remove unneeded string.h and call to strlen
Hugh McMaster
hugh.mcmaster at outlook.com
Tue Jun 23 06:27:25 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 a891998..b9744ae 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"
@@ -275,7 +274,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