ntdll: Pass the correct handle to NtTerminateProcess().

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=49832
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2020-12-17 11:58:47 +01:00
parent e695982db3
commit 88a1a6933b
1 changed files with 2 additions and 2 deletions

View File

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