Skip to content

Commit

Permalink
[NTOS:KE] Add a missin AcquirePrcbLock TODO: Check me
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkFire01 committed Nov 20, 2023
1 parent 409aa7d commit 201ea59
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ntoskrnl/ke/i386/thrdini.c
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,9 @@ KiDispatchInterrupt(VOID)
}
else if (Prcb->NextThread)
{
/* Acquire prcb the lock */
KiAcquirePrcbLock(Prcb);

/* Capture current thread data */
OldThread = Prcb->CurrentThread;
NewThread = Prcb->NextThread;
Expand Down

0 comments on commit 201ea59

Please sign in to comment.