Update the return status to comply to PI spec.
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 18 Oct 2007 01:00:01 +0000 (01:00 +0000)
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 18 Oct 2007 01:00:01 +0000 (01:00 +0000)
According to PI SPEC (Volume3 2.4), GetNextFile() should be return "EFI_NOT_FOUND" instead of "EFI_INVAILD_PARAMETER" when doesn't find the file with related File Type.c

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4159 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Core/Dxe/FwVol/FwVolRead.c

index a477ad488db21982c709e514316940673a1f38b2..94ba5018969c4542bfbbc9d75f933ce4573edf91 100644 (file)
@@ -148,7 +148,7 @@ Returns:
     //\r
     // File type needs to be in 0 - 0x0B\r
     //\r
     //\r
     // File type needs to be in 0 - 0x0B\r
     //\r
-    return EFI_INVALID_PARAMETER;\r
+    return EFI_NOT_FOUND;\r
   }\r
 \r
   KeyValue = (UINTN *)Key;\r
   }\r
 \r
   KeyValue = (UINTN *)Key;\r