Implementation for EFI_HII_FONT_PROTOCOL.\r
\r
\r
-Copyright (c) 2007 - 2009, Intel Corporation\r
+Copyright (c) 2007 - 2010, Intel Corporation\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
if (EFI_ERROR (Status)) {\r
goto Exit;\r
}\r
+ ASSERT (StringInfoOut != NULL);\r
FontInfo = &StringInfoOut->FontInfo;\r
Foreground = StringInfoOut->ForegroundColor;\r
Background = StringInfoOut->BackgroundColor;\r
InfoOut.BackgroundColor = SystemDefault->BackgroundColor;\r
}\r
\r
-\r
+ ASSERT (FontInfo != NULL);\r
FontInfo->FontSize = InfoOut.FontInfo.FontSize;\r
FontInfo->FontStyle = InfoOut.FontInfo.FontStyle;\r
\r
PrivateData->MacString = MacString;\r
\r
StrCpy (Str, L"VLAN Configuration (MAC:");\r
- ASSERT (StrLen (MacString) <= (sizeof (EFI_MAC_ADDRESS) * 2));\r
- StrCat (Str, MacString);\r
+ StrnCat (Str, MacString, sizeof (EFI_MAC_ADDRESS) * 2);\r
StrCat (Str, L")");\r
HiiSetString (\r
HiiHandle,\r
//\r
// Now we know the Storage width of nested Ordered List\r
//\r
+ ASSERT (CurrentStatement != NULL);\r
if ((CurrentStatement->Operand == EFI_IFR_ORDERED_LIST_OP) && (CurrentStatement->BufferValue == NULL)) {\r
Width = 1;\r
switch (CurrentOption->Value.Type) {\r
//\r
CopyMem (Dst, Storage->EditBuffer + Question->VarStoreInfo.VarOffset, StorageWidth);\r
} else {\r
+ Value = NULL;\r
Status = GetValueByName (Storage, Question->VariableName, &Value);\r
if (EFI_ERROR (Status)) {\r
return Status;\r
}\r
\r
+ ASSERT (Value != NULL);\r
LengthStr = StrLen (Value);\r
Status = EFI_SUCCESS;\r
if (IsString) {\r