From 335388cacac169d6716b9c076865facc940401f5 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 27 Jun 2019 21:49:33 +0200 Subject: [PATCH] xolehlp: Build with msvcrt. Signed-off-by: Alexandre Julliard --- dlls/xolehlp/Makefile.in | 2 ++ dlls/xolehlp/xolehlp.c | 5 ++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/dlls/xolehlp/Makefile.in b/dlls/xolehlp/Makefile.in index 58651a12c3c..37b1d0169fe 100644 --- a/dlls/xolehlp/Makefile.in +++ b/dlls/xolehlp/Makefile.in @@ -1,4 +1,6 @@ MODULE = xolehlp.dll IMPORTS = adsiid uuid +EXTRADLLFLAGS = -mno-cygwin + C_SRCS = xolehlp.c diff --git a/dlls/xolehlp/xolehlp.c b/dlls/xolehlp/xolehlp.c index 2a741f4914e..4baf31f2604 100644 --- a/dlls/xolehlp/xolehlp.c +++ b/dlls/xolehlp/xolehlp.c @@ -23,7 +23,6 @@ #include "transact.h" #include "initguid.h" #include "txdtc.h" -#include "wine/unicode.h" #include "wine/debug.h" WINE_DEFAULT_DEBUG_CHANNEL(xolehlp); @@ -662,8 +661,8 @@ static BOOL is_local_machineW( const WCHAR *server ) WCHAR buffer[MAX_COMPUTERNAME_LENGTH + 1]; DWORD len = ARRAY_SIZE( buffer ); - if (!server || !strcmpW( server, dotW )) return TRUE; - if (GetComputerNameW( buffer, &len ) && !strcmpiW( server, buffer )) return TRUE; + if (!server || !wcscmp( server, dotW )) return TRUE; + if (GetComputerNameW( buffer, &len ) && !wcsicmp( server, buffer )) return TRUE; return FALSE; }