Revision: 13905
          http://edk2.svn.sourceforge.net/edk2/?rev=13905&view=rev
Author:   vanjeff
Date:     2012-11-01 03:00:38 +0000 (Thu, 01 Nov 2012)
Log Message:
-----------
Sync patch r13862 from main trunk.
Fix a bug that BCFG creates Key#### variable bigger than it should be.

Revision Links:
--------------
    http://edk2.svn.sourceforge.net/edk2/?rev=13862&view=rev

Modified Paths:
--------------
    branches/UDK2010.SR1/ShellPkg/Library/UefiShellInstall1CommandsLib/Bcfg.c

Modified: 
branches/UDK2010.SR1/ShellPkg/Library/UefiShellInstall1CommandsLib/Bcfg.c
===================================================================
--- branches/UDK2010.SR1/ShellPkg/Library/UefiShellInstall1CommandsLib/Bcfg.c   
2012-11-01 02:53:52 UTC (rev 13904)
+++ branches/UDK2010.SR1/ShellPkg/Library/UefiShellInstall1CommandsLib/Bcfg.c   
2012-11-01 03:00:38 UTC (rev 13905)
@@ -857,7 +857,7 @@
         // Now we know how many EFI_INPUT_KEY structs we need to attach to the 
end of the EFI_KEY_OPTION struct.  
         // Re-allocate with the added information.
         //
-        KeyOptionBuffer = AllocateCopyPool(sizeof(EFI_KEY_OPTION) + 
(sizeof(EFI_KEY_DATA) * KEY_OPTION_INPUT_KEY_COUNT (&NewKeyOption)), 
&NewKeyOption);
+        KeyOptionBuffer = AllocateCopyPool(sizeof(EFI_KEY_OPTION) + 
(sizeof(EFI_INPUT_KEY) * KEY_OPTION_INPUT_KEY_COUNT (&NewKeyOption)), 
&NewKeyOption);
         if (KeyOptionBuffer == NULL) {
           ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_NO_MEM), 
gShellInstall1HiiHandle);
           ShellStatus = SHELL_OUT_OF_RESOURCES;
@@ -929,7 +929,7 @@
           VariableName,
           (EFI_GUID*)&gEfiGlobalVariableGuid,
           
EFI_VARIABLE_NON_VOLATILE|EFI_VARIABLE_BOOTSERVICE_ACCESS|EFI_VARIABLE_RUNTIME_ACCESS,
-          sizeof(EFI_KEY_OPTION) + (sizeof(EFI_KEY_DATA) * 
KEY_OPTION_INPUT_KEY_COUNT (&NewKeyOption)),
+          sizeof(EFI_KEY_OPTION) + (sizeof(EFI_INPUT_KEY) * 
KEY_OPTION_INPUT_KEY_COUNT (&NewKeyOption)),
           KeyOptionBuffer);
         if (EFI_ERROR(Status)) {
           ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_BCFG_SET_VAR_FAIL), 
gShellInstall1HiiHandle, VariableName, Status);

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to