Correct BlockSize when call ConfigToBlock API.
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 9 Feb 2010 06:29:37 +0000 (06:29 +0000)
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 9 Feb 2010 06:29:37 +0000 (06:29 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@9953 6f19259b-4bc3-4df7-8a09-765794883524

edk2/EdkCompatibilityPkg/Compatibility/FrameworkHiiOnUefiHiiThunk/ConfigAccess.c

index 8f3c31f..4701a31 100644 (file)
@@ -551,7 +551,6 @@ ThunkRouteConfig (
   VOID                                        *Data;\r
   UINTN                                       DataSize;\r
   UINTN                                       DataSize2;\r
-  UINTN                                       LastModifiedByteIndex;\r
   BOOLEAN                                     ResetRequired;\r
   BOOLEAN                                     DataAllocated;\r
 \r
@@ -602,11 +601,12 @@ ThunkRouteConfig (
     }\r
   }\r
 \r
+  DataSize = DataSize2;\r
   Status = mHiiConfigRoutingProtocol->ConfigToBlock (\r
                                           mHiiConfigRoutingProtocol,\r
                                           Configuration,\r
                                           Data,\r
-                                          &LastModifiedByteIndex,\r
+                                          &DataSize,\r
                                           Progress\r
                                           );\r
   if (EFI_ERROR (Status)) {\r
@@ -633,7 +633,6 @@ ThunkRouteConfig (
                     Data,\r
                     &ResetRequired\r
                     );\r
-      \r
     }\r
   }\r
 \r