mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-28 15:34: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 */
|
/* Hope we won't crash here */
|
||||||
|
|
||||||
|
if (Display == nullptr)
|
||||||
|
{
|
||||||
|
error("Can't initialize font without display initalized");
|
||||||
|
CPU::Stop();
|
||||||
|
}
|
||||||
|
|
||||||
if (FbBeforePanic != nullptr)
|
if (FbBeforePanic != nullptr)
|
||||||
KernelAllocator.FreePages(FbBeforePanic, FbPagesBeforePanic);
|
KernelAllocator.FreePages(FbBeforePanic, FbPagesBeforePanic);
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user