Alexandre Julliard : wer: Build with msvcrt.

Alexandre Julliard julliard at winehq.org
Wed Jun 26 16:15:40 CDT 2019


Module: wine
Branch: master
Commit: 6776953a62ffe7228872f271fb98c5fec454abe8
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=6776953a62ffe7228872f271fb98c5fec454abe8

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Wed Jun 26 09:37:08 2019 +0200

wer: Build with msvcrt.

Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 1439579..1de79a1 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 e4bda46..b40aa1b 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 <stdarg.h>
 
 #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]) {




More information about the wine-cvs mailing list