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>
This commit is contained in:
Ruiyu Ni 2016-03-24 10:30:25 +08:00
parent 8985d6127a
commit b99e9ca916
1 changed files with 3 additions and 4 deletions

View File

@ -458,6 +458,9 @@ BmGetActiveConsoleIn (
EFI_STATUS Status; EFI_STATUS Status;
EFI_HANDLE *Handles; EFI_HANDLE *Handles;
Handles = NULL;
*Count = 0;
if (gST->ConsoleInHandle != NULL) { if (gST->ConsoleInHandle != NULL) {
Status = gBS->OpenProtocol ( Status = gBS->OpenProtocol (
gST->ConsoleInHandle, gST->ConsoleInHandle,
@ -480,10 +483,6 @@ BmGetActiveConsoleIn (
&Handles &Handles
); );
} }
if (EFI_ERROR (Status)) {
Handles = NULL;
*Count = 0;
}
return Handles; return Handles;
} }