Change functional static variable to Global variable. No STATIC modifier is recommended though it is defined in Base.h.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6313 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qwang12
2008-10-31 02:04:40 +00:00
parent 8630d2ddf1
commit 19b15d6310
3 changed files with 20 additions and 21 deletions

View File

@@ -1,7 +1,7 @@
/** @file
Utility functions for User Interface functions.
Copyright (c) 2004 - 2007, Intel Corporation
Copyright (c) 2004 - 2008, Intel Corporation
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -116,6 +116,8 @@ SCREEN_OPERATION_T0_CONTROL_FLAG gScreenOperationToControlFlag[] = {
}
};
BOOLEAN mInputError;
/**
Set Buffer to Value for Size bytes.
@@ -892,7 +894,6 @@ UpdateStatusBar (
)
{
UINTN Index;
STATIC BOOLEAN InputError;
CHAR16 *NvUpdateMessage;
CHAR16 *InputErrorMessage;
@@ -908,14 +909,14 @@ UpdateStatusBar (
gScreenDimensions.BottomRow - 1,
InputErrorMessage
);
InputError = TRUE;
mInputError = TRUE;
} else {
gST->ConOut->SetAttribute (gST->ConOut, FIELD_TEXT_HIGHLIGHT);
for (Index = 0; Index < (GetStringWidth (InputErrorMessage) - 2) / 2; Index++) {
PrintAt (gScreenDimensions.LeftColumn + gPromptBlockWidth + Index, gScreenDimensions.BottomRow - 1, L" ");
}
InputError = FALSE;
mInputError = FALSE;
}
break;
@@ -947,7 +948,7 @@ UpdateStatusBar (
break;
case REFRESH_STATUS_BAR:
if (InputError) {
if (mInputError) {
UpdateStatusBar (INPUT_ERROR, Flags, TRUE);
}