}\r
\r
/**\r
- The function will go through the driver optoin link list, load and start\r
- every driver the driver optoin device path point to.\r
+ The function will go through the driver option link list, load and start\r
+ every driver the driver option device path point to.\r
\r
@param BdsDriverLists The header of the current driver option link list\r
\r
\r
/**\r
Get the Option Number that does not used.\r
- Try to locate the specific option variable one by one untile find a free number.\r
+ Try to locate the specific option variable one by one utile find a free number.\r
\r
@param VariableName Indicate if the boot#### or driver#### option\r
\r
if (OptionBuffer == NULL) {\r
break;\r
}\r
- Index ++;\r
+ Index++;\r
} while (TRUE);\r
\r
return ((UINT16) Index);\r
\r
Option->Signature = BDS_LOAD_OPTION_SIGNATURE;\r
Option->DevicePath = AllocateZeroPool (GetDevicePathSize (DevicePath));\r
+ ASSERT(Option->DevicePath != NULL);\r
CopyMem (Option->DevicePath, DevicePath, GetDevicePathSize (DevicePath));\r
+\r
Option->Attribute = Attribute;\r
Option->Description = AllocateZeroPool (StrSize (Description));\r
+ ASSERT(Option->Description != NULL);\r
CopyMem (Option->Description, Description, StrSize (Description));\r
+\r
Option->LoadOptions = AllocateZeroPool (LoadOptionsSize);\r
+ ASSERT(Option->LoadOptions != NULL);\r
CopyMem (Option->LoadOptions, LoadOptions, LoadOptionsSize);\r
Option->LoadOptionsSize = LoadOptionsSize;\r
\r
break;\r
}\r
}\r
-\r
+ \r
+ VA_END(Args);\r
return Status;\r
}\r
\r