From 6e2241a331eb6a96eb0282a565d56f85e3d3ccf1 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 28 May 2019 07:39:37 +0200 Subject: [PATCH] combase: Build with msvcrt. Signed-off-by: Alexandre Julliard --- dlls/combase/Makefile.in | 2 ++ dlls/combase/string.c | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/dlls/combase/Makefile.in b/dlls/combase/Makefile.in index df051ad2934..0f3c9f86322 100644 --- a/dlls/combase/Makefile.in +++ b/dlls/combase/Makefile.in @@ -1,6 +1,8 @@ MODULE = combase.dll IMPORTS = advapi32 ole32 uuid +EXTRADLLFLAGS = -mno-cygwin + C_SRCS = \ roapi.c \ string.c diff --git a/dlls/combase/string.c b/dlls/combase/string.c index dfbe3689623..2092e4360a3 100644 --- a/dlls/combase/string.c +++ b/dlls/combase/string.c @@ -17,11 +17,11 @@ */ #include +#include #include "windows.h" #include "winerror.h" #include "hstring.h" -#include "wine/unicode.h" #include "wine/debug.h" WINE_DEFAULT_DEBUG_CHANNEL(winstring); @@ -427,7 +427,7 @@ HRESULT WINAPI WindowsTrimStringStart(HSTRING str1, HSTRING str2, HSTRING *out) } for (start = 0; start < priv1->length; start++) { - if (!memchrW(priv2->buffer, priv1->buffer[start], priv2->length)) + if (!wmemchr(priv2->buffer, priv1->buffer[start], priv2->length)) break; } return start ? WindowsCreateString(&priv1->buffer[start], priv1->length - start, out) : @@ -454,7 +454,7 @@ HRESULT WINAPI WindowsTrimStringEnd(HSTRING str1, HSTRING str2, HSTRING *out) } for (len = priv1->length; len > 0; len--) { - if (!memchrW(priv2->buffer, priv1->buffer[len - 1], priv2->length)) + if (!wmemchr(priv2->buffer, priv1->buffer[len - 1], priv2->length)) break; } return (len < priv1->length) ? WindowsCreateString(priv1->buffer, len, out) :