mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-07-06 04:49:16 +00:00
Check if the thread pointer is valid before accessing it's data
This commit is contained in:
@ -167,8 +167,9 @@ namespace Tasking
|
||||
else
|
||||
{
|
||||
foreach (TCB *thread in Process->Threads)
|
||||
if (thread->Status == Terminated)
|
||||
RemoveThread(thread);
|
||||
if (!InvalidTCB(thread))
|
||||
if (thread->Status == Terminated)
|
||||
RemoveThread(thread);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user