From 6776953a62ffe7228872f271fb98c5fec454abe8 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Wed, 26 Jun 2019 09:37:08 +0200 Subject: [PATCH] wer: Build with msvcrt. Signed-off-by: Alexandre Julliard --- dlls/wer/Makefile.in | 2 ++ dlls/wer/main.c | 7 ++----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/dlls/wer/Makefile.in b/dlls/wer/Makefile.in index 1439579008e..1de79a1d25c 100644 --- a/dlls/wer/Makefile.in +++ b/dlls/wer/Makefile.in @@ -2,5 +2,7 @@ MODULE = wer.dll IMPORTLIB = wer IMPORTS = advapi32 +EXTRADLLFLAGS = -mno-cygwin + C_SRCS = \ main.c diff --git a/dlls/wer/main.c b/dlls/wer/main.c index e4bda46b7de..b40aa1b7625 100644 --- a/dlls/wer/main.c +++ b/dlls/wer/main.c @@ -17,8 +17,6 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ -#include "config.h" - #include #include "windef.h" @@ -27,7 +25,6 @@ #include "werapi.h" #include "wine/heap.h" #include "wine/list.h" -#include "wine/unicode.h" #include "wine/debug.h" WINE_DEFAULT_DEBUG_CHANNEL(wer); @@ -97,7 +94,7 @@ HRESULT WINAPI WerAddExcludedApplication(PCWSTR exeName, BOOL allUsers) if (!exeName || !exeName[0]) return E_INVALIDARG; - bs = strrchrW(exeName, '\\'); + bs = wcsrchr(exeName, '\\'); if (bs) { bs++; /* skip the backslash */ if (!bs[0]) { @@ -138,7 +135,7 @@ HRESULT WINAPI WerRemoveExcludedApplication(PCWSTR exeName, BOOL allUsers) if (!exeName || !exeName[0]) return E_INVALIDARG; - bs = strrchrW(exeName, '\\'); + bs = wcsrchr(exeName, '\\'); if (bs) { bs++; /* skip the backslash */ if (!bs[0]) {