mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-07-03 11:29:21 +00:00
Check Display class in InitFont()
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user