From e7ed15a16ad53ade1ec649f3a88fcb1293c7402d Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 13 Jun 2019 08:46:04 +0200 Subject: [PATCH] msscript.ocx: Build with msvcrt. Signed-off-by: Alexandre Julliard --- dlls/msscript.ocx/Makefile.in | 2 ++ dlls/msscript.ocx/msscript.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/dlls/msscript.ocx/Makefile.in b/dlls/msscript.ocx/Makefile.in index 7d768964962..304b924f931 100644 --- a/dlls/msscript.ocx/Makefile.in +++ b/dlls/msscript.ocx/Makefile.in @@ -3,5 +3,7 @@ RC_SRCS = msscript.rc IDL_SRCS = msscript.idl IMPORTS = gdi32 user32 ole32 oleaut32 +EXTRADLLFLAGS = -mno-cygwin + C_SRCS = \ msscript.c diff --git a/dlls/msscript.ocx/msscript.c b/dlls/msscript.ocx/msscript.c index 459c35aacf2..fb3ad0824b0 100644 --- a/dlls/msscript.ocx/msscript.c +++ b/dlls/msscript.ocx/msscript.c @@ -192,7 +192,7 @@ static struct named_item *host_get_named_item(ScriptHost *host, const WCHAR *nam struct named_item *item; LIST_FOR_EACH_ENTRY(item, &host->named_items, struct named_item, entry) { - if (!lstrcmpW(item->name, nameW)) + if (!wcscmp(item->name, nameW)) return item; }