mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-27 15:44:04 +02:00
Check Library usage.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7141 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
e15c65a371
commit
0322ed7af8
@ -763,10 +763,12 @@ CheckModeSupported (
|
|||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
UINTN SizeOfInfo;
|
UINTN SizeOfInfo;
|
||||||
EFI_GRAPHICS_OUTPUT_MODE_INFORMATION *Info;
|
EFI_GRAPHICS_OUTPUT_MODE_INFORMATION *Info;
|
||||||
|
UINT32 MaxMode;
|
||||||
|
|
||||||
Status = EFI_SUCCESS;
|
Status = EFI_SUCCESS;
|
||||||
|
MaxMode = GraphicsOutput->Mode->MaxMode;
|
||||||
for (ModeNumber = 0; ModeNumber < GraphicsOutput->Mode->MaxMode; ModeNumber++) {
|
|
||||||
|
for (ModeNumber = 0; ModeNumber < MaxMode; ModeNumber++) {
|
||||||
Status = GraphicsOutput->QueryMode (
|
Status = GraphicsOutput->QueryMode (
|
||||||
GraphicsOutput,
|
GraphicsOutput,
|
||||||
ModeNumber,
|
ModeNumber,
|
||||||
@ -778,11 +780,11 @@ CheckModeSupported (
|
|||||||
(Info->VerticalResolution == VerticalResolution)) {
|
(Info->VerticalResolution == VerticalResolution)) {
|
||||||
Status = GraphicsOutput->SetMode (GraphicsOutput, ModeNumber);
|
Status = GraphicsOutput->SetMode (GraphicsOutput, ModeNumber);
|
||||||
if (!EFI_ERROR (Status)) {
|
if (!EFI_ERROR (Status)) {
|
||||||
gBS->FreePool (Info);
|
FreePool (Info);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
gBS->FreePool (Info);
|
FreePool (Info);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user