Signed-off-by: Martin Storsjö <[email protected]>
---
 .../winstorecompat/src/SetUnhandledExceptionFilter.c            | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/mingw-w64-libraries/winstorecompat/src/SetUnhandledExceptionFilter.c 
b/mingw-w64-libraries/winstorecompat/src/SetUnhandledExceptionFilter.c
index b80b78541..5cfe1d819 100644
--- a/mingw-w64-libraries/winstorecompat/src/SetUnhandledExceptionFilter.c
+++ b/mingw-w64-libraries/winstorecompat/src/SetUnhandledExceptionFilter.c
@@ -36,7 +36,7 @@ LPTOP_LEVEL_EXCEPTION_FILTER WINAPI 
SetUnhandledExceptionFilter(LPTOP_LEVEL_EXCE
         LPTOP_LEVEL_EXCEPTION_FILTER prev_filter;
     } u;
     PVOID *target = &u.target;
-    return 
(LPTOP_LEVEL_EXCEPTION_FILTER)(INT_PTR)InterlockedExchangePointer(target, 
lpTopLevelExceptionFilter);
+    return 
(LPTOP_LEVEL_EXCEPTION_FILTER)(INT_PTR)InterlockedExchangePointer(target, 
(PVOID)lpTopLevelExceptionFilter);
 }
 
 #ifdef _X86_
-- 
2.17.1



_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to