From 995c594047fcc85dabb58addd28486c5df04deaa Mon Sep 17 00:00:00 2001 From: lgao4 Date: Tue, 9 Feb 2010 06:29:37 +0000 Subject: Correct BlockSize when call ConfigToBlock API. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9953 6f19259b-4bc3-4df7-8a09-765794883524 --- .../Compatibility/FrameworkHiiOnUefiHiiThunk/ConfigAccess.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/EdkCompatibilityPkg/Compatibility/FrameworkHiiOnUefiHiiThunk/ConfigAccess.c b/EdkCompatibilityPkg/Compatibility/FrameworkHiiOnUefiHiiThunk/ConfigAccess.c index 8f3c31f092..4701a31457 100644 --- a/EdkCompatibilityPkg/Compatibility/FrameworkHiiOnUefiHiiThunk/ConfigAccess.c +++ b/EdkCompatibilityPkg/Compatibility/FrameworkHiiOnUefiHiiThunk/ConfigAccess.c @@ -551,7 +551,6 @@ ThunkRouteConfig ( VOID *Data; UINTN DataSize; UINTN DataSize2; - UINTN LastModifiedByteIndex; BOOLEAN ResetRequired; BOOLEAN DataAllocated; @@ -602,11 +601,12 @@ ThunkRouteConfig ( } } + DataSize = DataSize2; Status = mHiiConfigRoutingProtocol->ConfigToBlock ( mHiiConfigRoutingProtocol, Configuration, Data, - &LastModifiedByteIndex, + &DataSize, Progress ); if (EFI_ERROR (Status)) { @@ -633,7 +633,6 @@ ThunkRouteConfig ( Data, &ResetRequired ); - } } -- cgit v1.2.3