diff --git a/patches/ntdll-RtlSetUnhandledExceptionFilter/0001-ntdll-Add-RtlSetUnhandledExceptionFilter-stub.patch b/patches/ntdll-RtlSetUnhandledExceptionFilter/0001-ntdll-Add-RtlSetUnhandledExceptionFilter-stub.patch new file mode 100644 index 00000000..95d2dcf4 --- /dev/null +++ b/patches/ntdll-RtlSetUnhandledExceptionFilter/0001-ntdll-Add-RtlSetUnhandledExceptionFilter-stub.patch @@ -0,0 +1,38 @@ +From bb6a297b0f0ba510954fd32fc5d1a1f9139e5536 Mon Sep 17 00:00:00 2001 +From: Andrew Wesie +Date: Mon, 23 Jul 2018 19:30:01 -0700 +Subject: [PATCH] ntdll: Add RtlSetUnhandledExceptionFilter stub. + +--- + dlls/ntdll/exception.c | 5 +++++ + dlls/ntdll/ntdll.spec | 1 + + 2 files changed, 6 insertions(+) + +diff --git a/dlls/ntdll/exception.c b/dlls/ntdll/exception.c +index f853810..f82b6b4 100644 +--- a/dlls/ntdll/exception.c ++++ b/dlls/ntdll/exception.c +@@ -325,3 +325,8 @@ void __wine_spec_unimplemented_stub( const char *module, const char *function ) + record.ExceptionInformation[1] = (ULONG_PTR)function; + for (;;) RtlRaiseException( &record ); + } ++ ++void WINAPI RtlSetUnhandledExceptionFilter( void *handler ) ++{ ++ FIXME( "(%p) stub!\n", handler ); ++} +diff --git a/dlls/ntdll/ntdll.spec b/dlls/ntdll/ntdll.spec +index d321c44..72437b1 100644 +--- a/dlls/ntdll/ntdll.spec ++++ b/dlls/ntdll/ntdll.spec +@@ -900,6 +900,7 @@ + # @ stub RtlSetThreadPoolStartFunc + @ stdcall RtlSetTimeZoneInformation(ptr) + # @ stub RtlSetTimer ++@ stdcall RtlSetUnhandledExceptionFilter(ptr) + @ stub RtlSetUnicodeCallouts + @ stub RtlSetUserFlagsHeap + @ stub RtlSetUserValueHeap +-- +1.9.1 + diff --git a/patches/ntdll-RtlSetUnhandledExceptionFilter/definition b/patches/ntdll-RtlSetUnhandledExceptionFilter/definition new file mode 100644 index 00000000..9a132f96 --- /dev/null +++ b/patches/ntdll-RtlSetUnhandledExceptionFilter/definition @@ -0,0 +1 @@ +Fixes: [45327] Add RtlSetUnhandledExceptionFilter stub diff --git a/patches/patchinstall.sh b/patches/patchinstall.sh index 9b3b776a..0a4f6a18 100755 --- a/patches/patchinstall.sh +++ b/patches/patchinstall.sh @@ -235,6 +235,7 @@ patch_enable_all () enable_ntdll_RtlCaptureStackBackTrace="$1" enable_ntdll_RtlGetUnloadEventTraceEx="$1" enable_ntdll_RtlQueryPackageIdentity="$1" + enable_ntdll_RtlSetUnhandledExceptionFilter="$1" enable_ntdll_Serial_Port_Detection="$1" enable_ntdll_Signal_Handler="$1" enable_ntdll_Stack_Guard_Page="$1" @@ -880,6 +881,9 @@ patch_enable () ntdll-RtlQueryPackageIdentity) enable_ntdll_RtlQueryPackageIdentity="$2" ;; + ntdll-RtlSetUnhandledExceptionFilter) + enable_ntdll_RtlSetUnhandledExceptionFilter="$2" + ;; ntdll-Serial_Port_Detection) enable_ntdll_Serial_Port_Detection="$2" ;; @@ -5251,6 +5255,21 @@ if test "$enable_ntdll_RtlGetUnloadEventTraceEx" -eq 1; then ) >> "$patchlist" fi +# Patchset ntdll-RtlSetUnhandledExceptionFilter +# | +# | This patchset fixes the following Wine bugs: +# | * [#45327] Add RtlSetUnhandledExceptionFilter stub +# | +# | Modified files: +# | * dlls/ntdll/exception.c, dlls/ntdll/ntdll.spec +# | +if test "$enable_ntdll_RtlSetUnhandledExceptionFilter" -eq 1; then + patch_apply ntdll-RtlSetUnhandledExceptionFilter/0001-ntdll-Add-RtlSetUnhandledExceptionFilter-stub.patch + ( + printf '%s\n' '+ { "Andrew Wesie", "ntdll: Add RtlSetUnhandledExceptionFilter stub.", 1 },'; + ) >> "$patchlist" +fi + # Patchset ntdll-Serial_Port_Detection # | # | This patchset fixes the following Wine bugs: