mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-31 01:24:12 +02:00
set initialized value for PrintNum.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5469 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
aaf14379c6
commit
379650305d
@ -687,6 +687,7 @@ Print (
|
|||||||
VerticalResolution = 0;
|
VerticalResolution = 0;
|
||||||
Blt = NULL;
|
Blt = NULL;
|
||||||
FontInfo = NULL;
|
FontInfo = NULL;
|
||||||
|
PrintNum = 0;
|
||||||
|
|
||||||
if (GraphicsOutput != NULL) {
|
if (GraphicsOutput != NULL) {
|
||||||
HorizontalResolution = GraphicsOutput->Mode->Info->HorizontalResolution;
|
HorizontalResolution = GraphicsOutput->Mode->Info->HorizontalResolution;
|
||||||
@ -834,7 +835,7 @@ Error:
|
|||||||
SafeFreePool (FontInfo);
|
SafeFreePool (FontInfo);
|
||||||
FreePool (Buffer);
|
FreePool (Buffer);
|
||||||
|
|
||||||
if (EFI_ERROR(Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
return PrintNum;
|
return PrintNum;
|
||||||
} else {
|
} else {
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user