From 5aa83bee08e4049a5738c47c83b14dd7fa8a0e73 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Wed, 27 Mar 2019 16:50:21 +0100 Subject: [PATCH] user32: Add a dummy _wassert implementation to avoid a Mingw build issue. _wassert references __imp__MessageBoxW@16 which causes a duplicate definition of MessageBoxW. Signed-off-by: Alexandre Julliard --- dlls/user32/user_main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dlls/user32/user_main.c b/dlls/user32/user_main.c index 007cb687f5d..830097570a2 100644 --- a/dlls/user32/user_main.c +++ b/dlls/user32/user_main.c @@ -55,6 +55,10 @@ static DWORD exiting_thread_id; extern void WDML_NotifyThreadDetach(void); +#ifdef __MINGW32__ +/* work around a Mingw build issue where _wassert causes a duplicate reference to MessageBoxW */ +void __cdecl _wassert( const WCHAR *msg, const WCHAR *file, unsigned line) { abort(); } +#endif /*********************************************************************** * USER_Lock