Commit 88a1a693 authored by Alexandre Julliard's avatar Alexandre Julliard

ntdll: Pass the correct handle to NtTerminateProcess().

parent e695982d
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment