mirror of
https://github.com/reactos/reactos.git
synced 2026-06-01 08:50:24 +08:00
[NTOS:KE] Clear NpxThread on rundown for SMP as well (#7151)
clear NpxThread on rundown for SMP as well Fixes the crash whenever a usermode thread is destroyed on x86
This commit is contained in:
@@ -386,7 +386,6 @@ FORCEINLINE
|
||||
VOID
|
||||
KiRundownThread(IN PKTHREAD Thread)
|
||||
{
|
||||
#ifndef CONFIG_SMP
|
||||
/* Check if this is the NPX Thread */
|
||||
if (KeGetCurrentPrcb()->NpxThread == Thread)
|
||||
{
|
||||
@@ -394,9 +393,6 @@ KiRundownThread(IN PKTHREAD Thread)
|
||||
KeGetCurrentPrcb()->NpxThread = NULL;
|
||||
Ke386FnInit();
|
||||
}
|
||||
#else
|
||||
/* Nothing to do */
|
||||
#endif
|
||||
}
|
||||
|
||||
CODE_SEG("INIT")
|
||||
|
||||
Reference in New Issue
Block a user