/** @file\r
Provide generic extract guided section functions for PEI phase.\r
\r
- Copyright (c) 2007 - 2008, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>\r
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
HandlerInfo->ExtractGetInfoHandlerTable = (EXTRACT_GUIDED_SECTION_GET_INFO_HANDLER *) (\r
(UINT8 *)HandlerInfo->ExtractDecodeHandlerTable + \r
PcdGet32 (PcdMaximumGuidedExtractHandler) * \r
- sizeof (EXTRACT_GUIDED_SECTION_GET_INFO_HANDLER)\r
+ sizeof (EXTRACT_GUIDED_SECTION_DECODE_HANDLER)\r
);\r
}\r
//\r
//\r
// No enough resource to build guid hob.\r
//\r
+ *InfoPointer = NULL;\r
return EFI_OUT_OF_RESOURCES;\r
}\r
//\r
HandlerInfo->ExtractGetInfoHandlerTable = (EXTRACT_GUIDED_SECTION_GET_INFO_HANDLER *) (\r
(UINT8 *)HandlerInfo->ExtractDecodeHandlerTable + \r
PcdGet32 (PcdMaximumGuidedExtractHandler) * \r
- sizeof (EXTRACT_GUIDED_SECTION_GET_INFO_HANDLER)\r
+ sizeof (EXTRACT_GUIDED_SECTION_DECODE_HANDLER)\r
);\r
//\r
// return the created HandlerInfo.\r
//\r
Status = PeiGetExtractGuidedSectionHandlerInfo (&HandlerInfo);\r
if (EFI_ERROR (Status)) {\r
- return Status;\r
+ *ExtractHandlerGuidTable = NULL;\r
+ return 0;\r
}\r
\r
//\r
CopyGuid (HandlerInfo->ExtractHandlerGuidTable + HandlerInfo->NumberOfExtractHandler, SectionGuid);\r
HandlerInfo->ExtractDecodeHandlerTable [HandlerInfo->NumberOfExtractHandler] = DecodeHandler;\r
HandlerInfo->ExtractGetInfoHandlerTable [HandlerInfo->NumberOfExtractHandler++] = GetInfoHandler;\r
- \r
+\r
return RETURN_SUCCESS;\r
}\r
\r