Use Feature Flag PCD to PcdUefiVariableDefaultLangDepricate to replace LANG_SUPPORT.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5269 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qwang12 2008-05-22 08:37:25 +00:00
parent 2d81bfb983
commit d6c0ec55e8
1 changed files with 14 additions and 16 deletions

View File

@ -139,9 +139,7 @@ FrontPageCallback (
CHAR8 *LanguageString;
CHAR8 *LangCode;
CHAR8 Lang[RFC_3066_ENTRY_SIZE];
#ifdef LANG_SUPPORT
CHAR8 OldLang[ISO_639_2_ENTRY_SIZE];
#endif
UINTN Index;
EFI_STATUS Status;
@ -190,7 +188,7 @@ FrontPageCallback (
Lang
);
#ifdef LANG_SUPPORT
if (!FeaturePcdGet (PcdUefiVariableDefaultLangDepricate)) {
//
// Set UEFI deprecated variable "Lang" for backwards compatibility
//
@ -204,7 +202,7 @@ FrontPageCallback (
OldLang
);
}
#endif
}
FreePool (LanguageString);
break;