[PATCH v4] ucrtbase: Hook up _seh_filter_exe and _seh_filter_dll

Martin Storsjo martin at martin.st
Mon Nov 9 05:36:08 CST 2015


This gives more sensible crash behaviour e.g. if an unimplemented
function is called.

Signed-off-by: Martin Storsjo <martin at martin.st>
---
v2: Fixed warnings in the TRACE format string.
v3: Fixed the data type used for the "unsigned long" parameters,
which should be MSVCRT_ulong instead.
v4: Just call the existing __CppXcptFilter instead of duplicating
functions.
---
 dlls/api-ms-win-crt-runtime-l1-1-0/api-ms-win-crt-runtime-l1-1-0.spec | 4 ++--
 dlls/ucrtbase/ucrtbase.spec                                           | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/api-ms-win-crt-runtime-l1-1-0/api-ms-win-crt-runtime-l1-1-0.spec b/dlls/api-ms-win-crt-runtime-l1-1-0/api-ms-win-crt-runtime-l1-1-0.spec
index d52b81b..4c4dc26 100644
--- a/dlls/api-ms-win-crt-runtime-l1-1-0/api-ms-win-crt-runtime-l1-1-0.spec
+++ b/dlls/api-ms-win-crt-runtime-l1-1-0/api-ms-win-crt-runtime-l1-1-0.spec
@@ -63,8 +63,8 @@
 @ stub _register_onexit_function
 @ stub _register_thread_local_exe_atexit_callback
 @ cdecl _resetstkoflw() ucrtbase._resetstkoflw
-@ stub _seh_filter_dll
-@ stub _seh_filter_exe
+@ cdecl _seh_filter_dll(long ptr) ucrtbase._seh_filter_dll
+@ cdecl _seh_filter_exe(long ptr) ucrtbase._seh_filter_exe
 @ cdecl _set_abort_behavior(long long) ucrtbase._set_abort_behavior
 @ cdecl _set_app_type(long) ucrtbase._set_app_type
 @ cdecl _set_controlfp(long long) ucrtbase._set_controlfp
diff --git a/dlls/ucrtbase/ucrtbase.spec b/dlls/ucrtbase/ucrtbase.spec
index 7d8d4d1..29a0936 100644
--- a/dlls/ucrtbase/ucrtbase.spec
+++ b/dlls/ucrtbase/ucrtbase.spec
@@ -1874,8 +1874,8 @@
 @ cdecl -arch=arm,x86_64 _scalbf(float long) MSVCRT__scalbf
 @ cdecl _searchenv(str str ptr) MSVCRT__searchenv
 @ cdecl _searchenv_s(str str ptr long) MSVCRT__searchenv_s
-@ stub _seh_filter_dll
-@ stub _seh_filter_exe
+@ cdecl _seh_filter_dll(long ptr) __CppXcptFilter
+@ cdecl _seh_filter_exe(long ptr) __CppXcptFilter
 @ stub _set_FMA3_enable
 @ stdcall -arch=i386 _seh_longjmp_unwind4(ptr)
 @ stdcall -arch=i386 _seh_longjmp_unwind(ptr)
-- 
1.8.1.2




More information about the wine-patches mailing list