[SETUPLIB] FindSupportedSystemPartition(): Add missing NULL check

Addendum to commit 59acff79e.
This commit is contained in:
Hermès Bélusca-Maïto 2024-02-21 18:32:19 +01:00
parent ae27ffcddc
commit c752e8c0be
No known key found for this signature in database
GPG Key ID: 3B2539C65E7B93D0

View File

@ -3346,6 +3346,11 @@ FindSupportedSystemPartition(
* should be our system partition.
*/
DiskEntry = GetSystemDisk(List);
if (!DiskEntry)
{
/* No system disk found, directly go check the alternative disk */
goto UseAlternativeDisk;
}
if (DiskEntry->DiskStyle == PARTITION_STYLE_GPT)
{