mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-27 15:04:33 +00:00
Check Display class in InitFont()
This commit is contained in:
parent
9722a44dc2
commit
464022a61d
@ -105,6 +105,12 @@ nsa void InitFont()
|
||||
{
|
||||
/* Hope we won't crash here */
|
||||
|
||||
if (Display == nullptr)
|
||||
{
|
||||
error("Can't initialize font without display initalized");
|
||||
CPU::Stop();
|
||||
}
|
||||
|
||||
if (FbBeforePanic != nullptr)
|
||||
KernelAllocator.FreePages(FbBeforePanic, FbPagesBeforePanic);
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user