History log of /device/linaro/bootloader/edk2/MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootOption.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
a91f1a0e88d07dd3817737f9886bc247cc737a4f 05-Jul-2016 Bi, Dandan <C:/Program Files (x86)/Git/o=Intel/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=Bi, Dandan08b> MdeModulePkg/BootMaintUi: Add error handling codes when AllocatePool fail

The AllocateCopyPool in function ExtractFileNameFromDevicePath
may return NULL, so need to do error handling. This patch is to
add error handling codes for function ExtractFileNameFromDevicePath
and its caller functions.

Cc: Eric Dong <eric.dong@intel.com>
Cc: Hao Wu <hao.a.wu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Hao Wu <hao.a.wu@intel.com>
/device/linaro/bootloader/edk2/MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootOption.c
80b14f9a9941e8beea8f54e32f87ff8c5ad6a2c2 18-May-2016 Dong, Eric <eric.dong@intel.com> BootMaintenanceManagerUiLib: Remove invalid keyword "bds"

In current code, BootMaintenanceManagerUiLib is not BDS scope.
So we remove bds keyword in the function name.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
/device/linaro/bootloader/edk2/MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootOption.c
bdf0da37c92fc544100f8a809fcd8ceee67c045d 22-Mar-2016 Dandan Bi <dandan.bi@intel.com> MdeModulePkg/BootMaintManagerUiLib: Declare EFIAPI for ChooseFile handler

The BootMaintenanceManagerUiLib use ChooseFile() from FileExplorerLib
to select files. And the third parameter in ChooseFile() is CHOOSE_HANDLER,
per the definition of CHOOSE_HANDLER, it must use EFIAPI as the calling
convention. But the calling convention was not specified for following
handlers: CreateBootOptionFromFile, CreateDriverOptionFromFile,
BootFromFile. Now specifies the calling convention for those functions.

Cc: Liming Gao <liming.gao@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Gary Lin <glin@suse.com>
/device/linaro/bootloader/edk2/MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootOption.c
97033ebfa3cb10562c434a8927e2cba9e3940ec7 24-Feb-2016 Dandan Bi <dandan.bi@intel.com> MdeModulePkg: Fix the build fail issue on VS2008\VS2010\GCC

This is caused by my last commit,the LoadOption may
not initialize when call FreePool, and after investigation,
find that we can delete the LoadOption variable, this patch
is to fix this issue.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
/device/linaro/bootloader/edk2/MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootOption.c
2ba36b2f0ea77661a4a3dcce6785df49be20698d 26-Jan-2016 Dandan Bi <dandan.bi@intel.com> MdeModulePkg: Refine the code in BootMaintenanceManagerUiLib

Refine the code in function Var_UpdateDriverOption and Var_UpdateBootOption,
use the existed API(EfiBootManagerInitializeLoadOption and
EfiBootManagerAddLoadOptionVariable) supplied by UefiBootManagerLib
to replace the same logic in the two functions. And remove the useless
code.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
/device/linaro/bootloader/edk2/MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootOption.c
67013151bafeef044920e457aa275f617b5c6485 19-Jan-2016 Dandan Bi <dandan.bi@intel.com> MdeModulePkg:Rename BootMaintenanceManagerLib to BootMaintenanceManagerUiLib

Avoid any confusion,add the keyword "Ui",
user can understand the use of the library clearly.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19662 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootOption.c