Piotr Caban : msvcrt: Fix __uncaught_exception implementation.

Alexandre Julliard julliard at winehq.org
Tue Mar 20 17:51:36 CDT 2018


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

Author: Piotr Caban <piotr at codeweavers.com>
Date:   Tue Mar 20 15:36:54 2018 +0100

msvcrt: Fix __uncaught_exception implementation.

Signed-off-by: Piotr Caban <piotr at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/msvcrt/except.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/msvcrt/except.c b/dlls/msvcrt/except.c
index b99c98b..8fccd8e 100644
--- a/dlls/msvcrt/except.c
+++ b/dlls/msvcrt/except.c
@@ -293,7 +293,7 @@ int CDECL _abnormal_termination(void)
  */
 BOOL CDECL MSVCRT___uncaught_exception(void)
 {
-    return FALSE;
+    return msvcrt_get_thread_data()->processing_throw != 0;
 }
 
 #if _MSVCR_VER>=70 && _MSVCR_VER<=71




More information about the wine-cvs mailing list