From 2bfe47e85261f81091aa21b9212e5ff297156cc9 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 20 Apr 2006 15:40:42 +0200 Subject: [PATCH] ntdll: Use NtSetContextThread in NtRaiseException. --- dlls/ntdll/exception.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/dlls/ntdll/exception.c b/dlls/ntdll/exception.c index 4444ba1a115..8b1fc684d8a 100644 --- a/dlls/ntdll/exception.c +++ b/dlls/ntdll/exception.c @@ -77,8 +77,6 @@ static RTL_CRITICAL_SECTION vectored_handlers_section = { &critsect_debug, -1, 0 # error You must define GET_IP for this CPU #endif -extern void DECLSPEC_NORETURN __wine_call_from_32_restore_regs( const CONTEXT *context ); - /******************************************************************* * EXC_RaiseHandler * @@ -369,9 +367,7 @@ static NTSTATUS raise_exception( EXCEPTION_RECORD *rec, CONTEXT *context, BOOL f NTSTATUS WINAPI NtRaiseException( EXCEPTION_RECORD *rec, CONTEXT *context, BOOL first_chance ) { NTSTATUS status = raise_exception( rec, context, first_chance ); -#ifdef DEFINE_REGS_ENTRYPOINT - if (status == STATUS_SUCCESS) __wine_call_from_32_restore_regs( context ); -#endif + if (status == STATUS_SUCCESS) NtSetContextThread( GetCurrentThread(), context ); return status; }