/*++\r
\r
-Copyright (c) 2006, Intel Corporation \r
+Copyright (c) 2006 - 2007, Intel Corporation \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
- \r
- Please refer to the Tiano File Image Format Specification, \r
- FV spec 0.3.6\r
- \r
- Acronyms used Meaning\r
-\r
\r
--*/\r
\r
-\r
-#include "Common/FirmwareFileSystem.h"\r
#include "GuidedSection.h"\r
\r
EFI_STATUS\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
return EFI_OUT_OF_RESOURCES;\r
}\r
\r