mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00: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:
parent
3f54e0e504
commit
49e07292ed
1 changed files with 0 additions and 4 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue