Fix bug in function EfiFvbEraseBlock()
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 31 Jan 2008 06:17:03 +0000 (06:17 +0000)
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 31 Jan 2008 06:17:03 +0000 (06:17 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4644 6f19259b-4bc3-4df7-8a09-765794883524

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