diff options
author | Ruiyu Ni <ruiyu.ni@intel.com> | 2016-03-24 10:30:25 +0800 |
---|---|---|
committer | Ruiyu Ni <ruiyu.ni@intel.com> | 2016-03-24 11:24:30 +0800 |
commit | b99e9ca9163ae6298bb66cad705c3dc87f722bb0 (patch) | |
tree | a2b895c6e9a98c0d542d3f27b8d1f0959fa2f4f0 | |
parent | 8985d6127afc380ce10212a3eb7bb04bc5630380 (diff) | |
download | edk2-platforms-b99e9ca9163ae6298bb66cad705c3dc87f722bb0.tar.xz |
MdeModulePkg/Bds: Fix VS2012 build failure.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
-rw-r--r-- | MdeModulePkg/Library/UefiBootManagerLib/BmHotkey.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/MdeModulePkg/Library/UefiBootManagerLib/BmHotkey.c b/MdeModulePkg/Library/UefiBootManagerLib/BmHotkey.c index 4cc4fb4554..b49758b236 100644 --- a/MdeModulePkg/Library/UefiBootManagerLib/BmHotkey.c +++ b/MdeModulePkg/Library/UefiBootManagerLib/BmHotkey.c @@ -458,6 +458,9 @@ BmGetActiveConsoleIn ( EFI_STATUS Status;
EFI_HANDLE *Handles;
+ Handles = NULL;
+ *Count = 0;
+
if (gST->ConsoleInHandle != NULL) {
Status = gBS->OpenProtocol (
gST->ConsoleInHandle,
@@ -480,10 +483,6 @@ BmGetActiveConsoleIn ( &Handles
);
}
- if (EFI_ERROR (Status)) {
- Handles = NULL;
- *Count = 0;
- }
return Handles;
}
|