// Record the EnBootOption and DisBootOption according to the DevOrder\r
//\r
NewBootOption = AllocatePool (DevOrderCount * sizeof (UINT16));\r
+ ASSERT (NewBootOption != NULL);\r
+\r
while (DevOrderCount-- != 0) {\r
for (Index = 0; Index < mBootOptionBbsMappingCount; Index++) {\r
if (mBootOptionBbsMapping[Index].BbsIndex == (DevOrder[DevOrderCount] & 0xFF)) {\r