mirror of https://github.com/acidanthera/audk.git
Enhance the code to make the code logic more clear.
Signed-off-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13650 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
48ee8e3e8c
commit
d6bee311ce
|
@ -815,7 +815,7 @@ GetToken (
|
|||
|
||||
String = HiiGetString (HiiHandle, Token, NULL);
|
||||
if (String == NULL) {
|
||||
String = AllocateCopyPool (sizeof (mUnknownString), mUnknownString);
|
||||
String = AllocateCopyPool (StrSize (mUnknownString), mUnknownString);
|
||||
ASSERT (String != NULL);
|
||||
}
|
||||
return (CHAR16 *) String;
|
||||
|
@ -3269,7 +3269,7 @@ ExtractDefault (
|
|||
//
|
||||
// Initilize Questions' Value
|
||||
//
|
||||
LoadFormSetConfig (NULL, LocalFormSet);
|
||||
Status = LoadFormSetConfig (NULL, LocalFormSet);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DestroyFormSet (LocalFormSet);
|
||||
continue;
|
||||
|
|
|
@ -957,6 +957,9 @@ CreateDialog (
|
|||
TempString[Index - 1] = CHAR_NULL;
|
||||
StrCpy (StringBuffer, TempString);
|
||||
}
|
||||
//
|
||||
// break skipped on purpose
|
||||
//
|
||||
|
||||
default:
|
||||
//
|
||||
|
|
|
@ -517,6 +517,9 @@ BasePrintLibSPrintMarker (
|
|||
if (sizeof (VOID *) > 4) {
|
||||
Flags |= LONG_TYPE;
|
||||
}
|
||||
//
|
||||
// break skipped on purpose
|
||||
//
|
||||
case 'X':
|
||||
Flags |= PREFIX_ZERO;
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue