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:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user