ntdll-NtContinue: Fix arguments to NtContinue().

This commit is contained in:
Zebediah Figura 2019-11-10 20:47:35 -06:00
parent 7a3f594df2
commit ca018c8079

View File

@ -1,4 +1,4 @@
From d2dd24b9d13e1115822022b55e5f48cd5744ead3 Mon Sep 17 00:00:00 2001
From 812de54c6fc8f93e8fda01f0802397b183adab59 Mon Sep 17 00:00:00 2001
From: Andrew Wesie <awesie@gmail.com>
Date: Fri, 27 Jul 2018 01:26:56 -0500
Subject: [PATCH] ntdll: Use NtContinue to continue execution after exceptions.
@ -20,7 +20,7 @@ third-party.
3 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/dlls/ntdll/exception.c b/dlls/ntdll/exception.c
index 3b85f1efa0..bc972254f1 100644
index 3b85f1efa..bc972254f 100644
--- a/dlls/ntdll/exception.c
+++ b/dlls/ntdll/exception.c
@@ -671,8 +671,9 @@ PRUNTIME_FUNCTION WINAPI RtlLookupFunctionEntry( ULONG_PTR pc, ULONG_PTR *base,
@ -36,7 +36,7 @@ index 3b85f1efa0..bc972254f1 100644
/*************************************************************
diff --git a/dlls/ntdll/signal_i386.c b/dlls/ntdll/signal_i386.c
index e551646301..8fc885ed49 100644
index e55164630..8fc885ed4 100644
--- a/dlls/ntdll/signal_i386.c
+++ b/dlls/ntdll/signal_i386.c
@@ -730,6 +730,7 @@ static NTSTATUS call_stack_handlers( EXCEPTION_RECORD *rec, CONTEXT *context )
@ -57,7 +57,7 @@ index e551646301..8fc885ed49 100644
diff --git a/dlls/ntdll/signal_x86_64.c b/dlls/ntdll/signal_x86_64.c
index e48529d73a..bf0ae2a98b 100644
index e48529d73..0e74fda43 100644
--- a/dlls/ntdll/signal_x86_64.c
+++ b/dlls/ntdll/signal_x86_64.c
@@ -2520,6 +2520,7 @@ static NTSTATUS call_stack_handlers( EXCEPTION_RECORD *rec, CONTEXT *orig_contex
@ -73,7 +73,7 @@ index e48529d73a..bf0ae2a98b 100644
done:
- return NtSetContextThread( GetCurrentThread(), context );
+ return __syscall_NtContinue( GetCurrentThread(), context );
+ return __syscall_NtContinue( context, FALSE );
}