panic: Check if CurrentProcess & CurrentThread are valid before showing info

This commit is contained in:
EnderIce2 2024-11-16 04:42:20 +02:00
parent 4bc4e9b76f
commit 079055082a
Signed by untrusted user who does not match committer: enderice2
GPG Key ID: EACC3AD603BAB4DD

View File

@ -814,7 +814,7 @@ nsa void DisplayAssertionFailed(const char *File, int Line, const char *Expressi
File, Line, Expression);
CPUData *core = GetCurrentCPU();
if (TaskManager)
if (TaskManager && core->CurrentProcess.load() && core->CurrentThread.load())
{
ExPrint("Core: %d / pid: %d / tid: %d\n", core->ID,
core->CurrentProcess->ID, core->CurrentThread->ID);