+ (UINT16) (CharToUint (VariableName[NumOff+2]) * 0x10)\r
+ (UINT16) (CharToUint (VariableName[NumOff+3]) * 0x1);\r
}\r
- //\r
- // Insert active entry to BdsDeviceList\r
- //\r
- if ((Option->Attribute & LOAD_OPTION_ACTIVE) == LOAD_OPTION_ACTIVE) {\r
- InsertTailList (BdsCommonOptionList, &Option->Link);\r
- FreePool (Variable);\r
- return Option;\r
- }\r
-\r
+ InsertTailList (BdsCommonOptionList, &Option->Link);\r
FreePool (Variable);\r
- FreePool (Option->Description);\r
- FreePool (Option->DevicePath);\r
- FreePool (Option->LoadOptions);\r
- FreePool (Option);\r
- return NULL;\r
+ return Option;\r
}\r
\r
/**\r