//\r
FvhLength = sizeof (EFI_FIRMWARE_VOLUME_HEADER);\r
Status = Fvb->Read (Fvb, 0, 0, &FvhLength, (UINT8 *)&TempFvh);\r
+ if (EFI_ERROR (Status)) {\r
+ return Status;\r
+ }\r
\r
//\r
// Allocate a buffer for the caller\r
\r
\r
/**\r
- This routine is the driver initialization entry point. It initializes the\r
- libraries, and registers two notification functions. These notification\r
- functions are responsible for building the FV stack dynamically.\r
+ This routine is the driver initialization entry point. It registers\r
+ a notification function. This notification function are responsible\r
+ for building the FV stack dynamically.\r
\r
@param ImageHandle The image handle.\r
@param SystemTable The system table.\r
Retrieves attributes, insures positive polarity of attribute bits, returns\r
resulting attributes in output parameter.\r
\r
- @param This Calling context\r
- @param Attributes output buffer which contains attributes\r
+ @param This Pointer to EFI_FIRMWARE_VOLUME2_PROTOCOL.\r
+ @param Attributes output buffer which contains attributes.\r
\r
- @retval EFI_SUCCESS Successfully got volume attributes\r
+ @retval EFI_SUCCESS Successfully got volume attributes.\r
\r
**/\r
EFI_STATUS\r
/**\r
Sets current attributes for volume\r
\r
- @param This Calling context\r
+ @param This Pointer to EFI_FIRMWARE_VOLUME2_PROTOCOL.\r
@param Attributes At input, contains attributes to be set. At output\r
- contains new value of FV\r
+ contains new value of FV.\r
\r
@retval EFI_UNSUPPORTED Could not be set.\r
\r
/**\r
Given the input key, search for the next matching file in the volume.\r
\r
- @param This Indicates the calling context.\r
+ @param This Pointer to EFI_FIRMWARE_VOLUME2_PROTOCOL.\r
@param Key Key is a pointer to a caller allocated\r
buffer that contains implementation specific\r
data that is used to track where to begin\r
Locates a file in the firmware volume and\r
copies it to the supplied buffer.\r
\r
- @param This Indicates the calling context.\r
+ @param This Pointer to EFI_FIRMWARE_VOLUME2_PROTOCOL.\r
@param NameGuid Pointer to an EFI_GUID, which is the\r
filename.\r
@param Buffer Buffer is a pointer to pointer to a buffer\r
Locates a section in a given FFS File and\r
copies it to the supplied buffer (not including section header).\r
\r
- @param This Indicates the calling context.\r
+ @param This Pointer to EFI_FIRMWARE_VOLUME2_PROTOCOL.\r
@param NameGuid Pointer to an EFI_GUID, which is the\r
filename.\r
@param SectionType Indicates the section type to return.\r
/**\r
Writes one or more files to the firmware volume.\r
\r
- @param This Indicates the calling context.\r
+ @param This Pointer to EFI_FIRMWARE_VOLUME2_PROTOCOL.\r
@param NumberOfFiles Number of files.\r
@param WritePolicy WritePolicy indicates the level of reliability\r
for the write in the event of a power failure or\r