[PATCH] [Msvcrt]: added __uncaught_exception support
Eric Pouech
eric.pouech at orange.fr
Sat Oct 3 06:13:37 CDT 2009
(fix for #19994)
A+
---
dlls/msvcr71/msvcr71.spec | 2 +-
dlls/msvcrt/except.c | 8 ++++++++
dlls/msvcrt/msvcrt.spec | 1 +
3 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/dlls/msvcr71/msvcr71.spec b/dlls/msvcr71/msvcr71.spec
index fc693bd..7552ca3 100644
--- a/dlls/msvcr71/msvcr71.spec
+++ b/dlls/msvcr71/msvcr71.spec
@@ -30,7 +30,7 @@
@ stub ??_Fbad_typeid@@QAEXXZ
@ cdecl ??_U at YAPAXI@Z(long) msvcrt.??_U at YAPAXI@Z
@ cdecl ??_V at YAXPAX@Z(ptr) msvcrt.??_V at YAXPAX@Z
-@ stub __uncaught_exception
+@ cdecl __uncaught_exception() msvcrt.__uncaught_exception
@ cdecl ?_query_new_handler@@YAP6AHI at ZXZ() msvcrt.?_query_new_handler@@YAP6AHI at ZXZ
@ cdecl ?_query_new_mode@@YAHXZ() msvcrt.?_query_new_mode@@YAHXZ
@ cdecl ?_set_new_handler@@YAP6AHI at ZP6AHI@Z at Z(ptr) msvcrt.?_set_new_handler@@YAP6AHI at ZP6AHI@Z at Z
diff --git a/dlls/msvcrt/except.c b/dlls/msvcrt/except.c
index 5de42db..119469b 100644
--- a/dlls/msvcrt/except.c
+++ b/dlls/msvcrt/except.c
@@ -608,3 +608,11 @@ int CDECL _XcptFilter(NTSTATUS ex, PEXCEPTION_POINTERS ptr)
/* I assume ptr->ExceptionRecord->ExceptionCode is the same as ex */
return msvcrt_exception_filter(ptr);
}
+
+/******************************************************************
+ * MSVCRT___uncaught_exception
+ */
+BOOL CDECL MSVCRT___uncaught_exception(void)
+{
+ return FALSE;
+}
diff --git a/dlls/msvcrt/msvcrt.spec b/dlls/msvcrt/msvcrt.spec
index 5c475a0..bd76fda 100644
--- a/dlls/msvcrt/msvcrt.spec
+++ b/dlls/msvcrt/msvcrt.spec
@@ -151,6 +151,7 @@
@ cdecl __threadhandle() kernel32.GetCurrentThread
@ cdecl __threadid() kernel32.GetCurrentThreadId
@ cdecl __toascii(long) MSVCRT___toascii
+@ cdecl __uncaught_exception() MSVCRT___uncaught_exception
@ cdecl __unDName(ptr str long ptr ptr long)
@ cdecl __unDNameEx(ptr str long ptr ptr ptr long)
@ extern __unguarded_readlc_active MSVCRT___unguarded_readlc_active
More information about the wine-patches
mailing list