mirror of
https://github.com/reactos/reactos.git
synced 2025-01-13 23:23:30 +08:00
[BOOTLIB] Remove a useless 'FontDirectory' check as it becomes always valid (!= NULL) through the function.
CORE-11590 Adapted from Victor Martinez patch & Serge Gautherie PR #2062
This commit is contained in:
parent
591b2b807c
commit
f986527d49
@ -91,9 +91,9 @@ DsppLoadFontFile (
|
||||
if (!FontDirectory)
|
||||
{
|
||||
/* Use the boot device and boot directory */
|
||||
CustomDevice = FALSE;
|
||||
FontDevice = BlpBootDevice;
|
||||
FontDirectory = L"\\EFI\\Microsoft\\Boot\\Fonts";
|
||||
CustomDevice = FALSE;
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -157,8 +157,9 @@ Quickie:
|
||||
}
|
||||
|
||||
/* Check if we had a custom font directory allocated and free it */
|
||||
if ((FontDirectory) && (CustomDirectory))
|
||||
if ((CustomDirectory) && (CustomDevice))
|
||||
{
|
||||
ASSERT(FontDirectory);
|
||||
BlMmFreeHeap(FontDirectory);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user