From 4c5dd0e51370881133c3423272dcac3f6b3b27fa Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 29 Apr 2019 10:51:01 +0200 Subject: [PATCH] regsvr32: Build with msvcrt. Signed-off-by: Alexandre Julliard --- programs/regsvr32/Makefile.in | 3 ++- programs/regsvr32/regsvr32.c | 9 ++------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/programs/regsvr32/Makefile.in b/programs/regsvr32/Makefile.in index 15646a6b7ec..d8aee0ea666 100644 --- a/programs/regsvr32/Makefile.in +++ b/programs/regsvr32/Makefile.in @@ -1,7 +1,8 @@ MODULE = regsvr32.exe -APPMODE = -mwindows -municode IMPORTS = ole32 user32 +EXTRADLLFLAGS = -mwindows -municode -mno-cygwin + C_SRCS = \ regsvr32.c diff --git a/programs/regsvr32/regsvr32.c b/programs/regsvr32/regsvr32.c index cfbb80d465a..77a839e475a 100644 --- a/programs/regsvr32/regsvr32.c +++ b/programs/regsvr32/regsvr32.c @@ -22,14 +22,9 @@ */ #define WIN32_LEAN_AND_MEAN - -#include "config.h" -#include "wine/port.h" - #include #include #include "regsvr32.h" -#include "wine/unicode.h" #include "wine/debug.h" WINE_DEFAULT_DEBUG_CHANNEL(regsvr32); @@ -195,7 +190,7 @@ static WCHAR *parse_command_line(WCHAR *command_line) { if (command_line[0] == ':' && command_line[1]) { - int len = strlenW(command_line); + int len = lstrlenW(command_line); command_line++; len--; @@ -246,7 +241,7 @@ int wmain(int argc, WCHAR* argv[]) if (argv[i][2] && argv[i][2] != ':') continue; - switch (tolowerW(argv[i][1])) + switch (towlower(argv[i][1])) { case 'u': Unregister = TRUE;