All rights reserved. This program and the accompanying materials \r
are licensed and made available under the terms and conditions of the BSD License \r
which accompanies this distribution. The full text of the license may be found at \r
All rights reserved. This program and the accompanying materials \r
are licensed and made available under the terms and conditions of the BSD License \r
which accompanies this distribution. The full text of the license may be found at \r
extraction protocol. GUID specific implementation of each\r
GUIDed section extraction protocol can be found in other\r
files under the same directory.\r
extraction protocol. GUID specific implementation of each\r
GUIDed section extraction protocol can be found in other\r
files under the same directory.\r
// TODO: ExtractSection - add argument and description to function comment\r
// TODO: EFI_OUT_OF_RESOURCES - add return value to function comment\r
{\r
// TODO: ExtractSection - add argument and description to function comment\r
// TODO: EFI_OUT_OF_RESOURCES - add return value to function comment\r
{\r
- EFI_STATUS Status;\r
-\r
- *GuidedSep = NULL;\r
- Status = gBS->AllocatePool (\r
- EfiBootServicesData,\r
- sizeof (EFI_GUIDED_SECTION_EXTRACTION_PROTOCOL),\r
- (VOID **) GuidedSep\r
- );\r
- if (EFI_ERROR (Status)) {\r
+ *GuidedSep = AllocatePool (sizeof (EFI_GUIDED_SECTION_EXTRACTION_PROTOCOL));\r
+ if (*GuidedSep == NULL) {\r