From d87da76156eb7a14dfc77d2071d1ad4b00348f77 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 2 May 2019 09:31:02 +0200 Subject: [PATCH] winemsibuilder: Build with msvcrt. Signed-off-by: Alexandre Julliard --- programs/winemsibuilder/Makefile.in | 3 ++- programs/winemsibuilder/main.c | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/programs/winemsibuilder/Makefile.in b/programs/winemsibuilder/Makefile.in index b29f44c84d9..1d7031e4ef1 100644 --- a/programs/winemsibuilder/Makefile.in +++ b/programs/winemsibuilder/Makefile.in @@ -1,5 +1,6 @@ MODULE = winemsibuilder.exe -APPMODE = -mconsole -municode IMPORTS = msi ole32 +EXTRADLLFLAGS = -mconsole -municode -mno-cygwin + C_SRCS = main.c diff --git a/programs/winemsibuilder/main.c b/programs/winemsibuilder/main.c index ea4607eb2b8..71fd1fdc1c8 100644 --- a/programs/winemsibuilder/main.c +++ b/programs/winemsibuilder/main.c @@ -28,7 +28,6 @@ #include #include "wine/debug.h" -#include "wine/unicode.h" WINE_DEFAULT_DEBUG_CHANNEL(winemsibuilder); @@ -131,7 +130,7 @@ static WCHAR *encode_stream( const WCHAR *in ) DWORD c, next, count; WCHAR *out, *p; - count = strlenW( in ); + count = lstrlenW( in ); if (count > MAX_STREAM_NAME) return NULL;