Added ntdll-RtlSetUnhandledExceptionFilter patchset

This commit is contained in:
Alistair Leslie-Hughes 2018-07-30 12:19:24 +10:00
parent f07947d41c
commit 87b63971e9
3 changed files with 58 additions and 0 deletions

View File

@ -0,0 +1,38 @@
From bb6a297b0f0ba510954fd32fc5d1a1f9139e5536 Mon Sep 17 00:00:00 2001
From: Andrew Wesie <awesie@gmail.com>
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

View File

@ -0,0 +1 @@
Fixes: [45327] Add RtlSetUnhandledExceptionFilter stub

View File

@ -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: