Alexandre Julliard : ntdll: Pass the correct handle to NtTerminateProcess().
Alexandre Julliard
julliard at winehq.org
Thu Dec 17 15:50:26 CST 2020
Module: wine
Branch: master
Commit: 88a1a6933ba3a364b6b2c536719a3acf8d1de590
URL: https://source.winehq.org/git/wine.git/?a=commit;h=88a1a6933ba3a364b6b2c536719a3acf8d1de590
Author: Alexandre Julliard <julliard at winehq.org>
Date: Thu Dec 17 11:58:47 2020 +0100
ntdll: Pass the correct handle to NtTerminateProcess().
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=49832
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/ntdll/thread.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/ntdll/thread.c b/dlls/ntdll/thread.c
index 3dd1c9a5c26..8e5a3a3a3a3 100644
--- a/dlls/ntdll/thread.c
+++ b/dlls/ntdll/thread.c
@@ -124,7 +124,7 @@ void DECLSPEC_HIDDEN call_thread_func( PRTL_THREAD_START_ROUTINE entry, void *ar
}
__EXCEPT(call_unhandled_exception_filter)
{
- NtTerminateProcess( GetCurrentThread(), GetExceptionCode() );
+ NtTerminateProcess( GetCurrentProcess(), GetExceptionCode() );
}
__ENDTRY
}
@@ -140,7 +140,7 @@ void WINAPI RtlUserThreadStart( PRTL_THREAD_START_ROUTINE entry, void *arg )
}
__EXCEPT(call_unhandled_exception_filter)
{
- NtTerminateProcess( GetCurrentThread(), GetExceptionCode() );
+ NtTerminateProcess( GetCurrentProcess(), GetExceptionCode() );
}
__ENDTRY
}
More information about the wine-cvs
mailing list