]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Core/Pei/FwVol/FwVol.c
Following 3 updates are for spec update published in PI 1.2.
[mirror_edk2.git] / MdeModulePkg / Core / Pei / FwVol / FwVol.c
index eb20f5131b39bc385f43b9912c42d9fedad620ef..7b74edb69ac92778e1c942d7b91d8f444df4cdf1 100644 (file)
@@ -730,12 +730,19 @@ PeiFfsGetFileInfo (
 /**\r
   Returns information about the specified volume.\r
 \r
-  @param VolumeHandle    Handle of the volume.\r
-  @param VolumeInfo      Upon exit, points to the volume’s information.\r
+  This function returns information about a specific firmware\r
+  volume, including its name, type, attributes, starting address\r
+  and size.\r
+\r
+  @param VolumeHandle   Handle of the volume.\r
+  @param VolumeInfo     Upon exit, points to the volume's information.\r
+\r
+  @retval EFI_SUCCESS             Volume information returned.\r
+  @retval EFI_INVALID_PARAMETER   If VolumeHandle does not represent a valid volume.\r
+  @retval EFI_INVALID_PARAMETER   If VolumeHandle is NULL.\r
+  @retval EFI_SUCCESS             Information successfully returned.\r
+  @retval EFI_INVALID_PARAMETER   The volume designated by the VolumeHandle is not available.\r
 \r
-  @retval EFI_INVALID_PARAMETER If VolumeHandle does not represent a valid volume.\r
-  @retval EFI_INVALID_PARAMETER If VolumeInfo is NULL.\r
-  @retval EFI_SUCCESS           Volume information returned.\r
 **/\r
 EFI_STATUS\r
 EFIAPI \r
@@ -962,6 +969,8 @@ PeiFfs2FvPpiProcessVolume (
           ));\r
   PrivateData->FvCount ++;\r
   \r
+  FileHandle = NULL;\r
+  \r
   do {\r
     Status = This->FindFileByType (\r
                      This,\r