Fix NULL pointer
All checks were successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
2023-01-11 23:16:44 +01:00
parent 21abe0553a
commit 42c3d4eff7

View File

@@ -99,6 +99,7 @@ XtBootSystem(IN PXT_BOOT_PROTOCOL_PARAMETERS Parameters)
Parameters->SystemPath = L"\\ExectOS";
}
/* Check if kernel file is set */
if(Parameters->KernelFile == NULL)
{
/* No kernel filename set, fallback to default */
@@ -106,6 +107,13 @@ XtBootSystem(IN PXT_BOOT_PROTOCOL_PARAMETERS Parameters)
Parameters->KernelFile = L"xtoskrnl.exe";
}
/* Check if provided any kernel boot arguments */
if(Parameters->Arguments == NULL)
{
/* No argument supplied */
Parameters->Arguments = L"";
}
/* Print a debug message */
XtLdrProtocol->DbgPrint(L"[XTOS] ARC Path: %S\n"
L"[XTOS] System Path: %S\n"