mirror of https://github.com/acidanthera/audk.git
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:
parent
8985d6127a
commit
b99e9ca916
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue