Fix bug in function EfiFvbEraseBlock()
authorlgao4 <lgao4@de2fecce-e211-0410-80a6-f3fac2684e05>
Thu, 31 Jan 2008 06:17:03 +0000 (06:17 +0000)
committerlgao4 <lgao4@de2fecce-e211-0410-80a6-f3fac2684e05>
Thu, 31 Jan 2008 06:17:03 +0000 (06:17 +0000)
git-svn-id: https://edk2.tianocore.org/svn/edk2/trunk@4644 de2fecce-e211-0410-80a6-f3fac2684e05

edk2/MdeModulePkg/Library/EdkFvbServiceLib/Fvb.c

index 8c2a77e..db415a1 100644 (file)
@@ -429,7 +429,7 @@ EfiFvbEraseBlock (
     return EFI_INVALID_PARAMETER;\r
   }\r
 \r
-  return mFvbEntry[Instance].Fvb->EraseBlocks (mFvbEntry[Instance].Fvb, Lba, -1);\r
+  return mFvbEntry[Instance].Fvb->EraseBlocks (mFvbEntry[Instance].Fvb, Lba, 1, EFI_LBA_LIST_TERMINATOR);\r
 }\r
 \r
 /**\r