From b7818870045ed6e7d1512ad1aab55277864a1e6a Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 4 Jun 2019 09:08:42 +0200 Subject: [PATCH] faultrep: Build with msvcrt. Signed-off-by: Alexandre Julliard --- dlls/faultrep/Makefile.in | 2 ++ dlls/faultrep/faultrep.c | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dlls/faultrep/Makefile.in b/dlls/faultrep/Makefile.in index c478df46a16..70cd1ff438a 100644 --- a/dlls/faultrep/Makefile.in +++ b/dlls/faultrep/Makefile.in @@ -2,4 +2,6 @@ MODULE = faultrep.dll IMPORTLIB = faultrep IMPORTS = advapi32 +EXTRADLLFLAGS = -mno-cygwin + C_SRCS = faultrep.c diff --git a/dlls/faultrep/faultrep.c b/dlls/faultrep/faultrep.c index 83f9027967d..3191659cd6c 100644 --- a/dlls/faultrep/faultrep.c +++ b/dlls/faultrep/faultrep.c @@ -24,7 +24,6 @@ #include "winnls.h" #include "winreg.h" #include "wine/debug.h" -#include "wine/unicode.h" #include "errorrep.h" @@ -62,7 +61,7 @@ BOOL WINAPI AddERExcludedApplicationW(LPCWSTR lpAppFileName) LONG res; TRACE("(%s)\n", wine_dbgstr_w(lpAppFileName)); - bslash = strrchrW(lpAppFileName, '\\'); + bslash = wcsrchr(lpAppFileName, '\\'); if (bslash != NULL) lpAppFileName = bslash + 1; if (*lpAppFileName == '\0')