]> git.proxmox.com Git - mirror_edk2.git/commit - MdeModulePkg/Library/UefiBootManagerLib/BmHotkey.c
MdeModulePkg/UefiBootManagerLib: BmGetActiveConsoleIn code cleanup
authorThomas Palmer <thomas.palmer@hpe.com>
Wed, 30 Mar 2016 17:16:48 +0000 (01:16 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Thu, 31 Mar 2016 01:21:05 +0000 (09:21 +0800)
commit065e587c179d17eabe38ef743cf3fd95a5a492a0
tree665490e924fce14d9b8f795f924dce2e76d4a31a
parent7361d3ff88e51a82282d86f268d83366f79a5075
MdeModulePkg/UefiBootManagerLib: BmGetActiveConsoleIn code cleanup

Check for NULL from AllocateCopyPool before setting Count to 1. Also
change sizeof (EFI_HANDLE*) to sizeof (EFI_HANDLE).  Handles is a
EFI_HANDLE pointer, so the allocated memory must be the size of
EFI_HANDLE.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Thomas Palmer <thomas.palmer@hpe.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
MdeModulePkg/Library/UefiBootManagerLib/BmHotkey.c