\r
FreePool (*OptionString);\r
*OptionString = NULL;\r
+ return EFI_NOT_FOUND;\r
}\r
\r
if ((OneOfOption->SuppressExpression != NULL) &&\r
}\r
\r
TempString = AllocateCopyPool ((Maximum + 1) * sizeof (CHAR16), Question->BufferValue);\r
+ ASSERT (TempString != NULL);\r
+ \r
TempString[Maximum] = L'\0';\r
\r
if (StrCmp (StringPtr, TempString) != 0) {\r
//\r
AllocateSize = 0x20;\r
IndexArray = AllocatePool (AllocateSize * sizeof (UINTN) * 3);\r
+ ASSERT (IndexArray != NULL);\r
\r
if (*FormattedString != NULL) {\r
FreePool (*FormattedString);\r
AllocateSize += 0x10;\r
OldIndexArray = IndexArray;\r
IndexArray = AllocatePool (AllocateSize * sizeof (UINTN) * 3);\r
+ ASSERT (IndexArray != NULL);\r
+ \r
CopyMem (IndexArray, OldIndexArray, LineCount * sizeof (UINTN) * 3);\r
FreePool (OldIndexArray);\r
}\r
\r
VirtualLineCount = RowCount * (LineCount / RowCount + (LineCount % RowCount > 0));\r
*FormattedString = AllocateZeroPool (VirtualLineCount * (BlockWidth + 1) * sizeof (CHAR16) * 2);\r
+ ASSERT (*FormattedString != NULL);\r
\r
for (CurrIndex = 0; CurrIndex < LineCount; CurrIndex ++) {\r
*(*FormattedString + CurrIndex * 2 * (BlockWidth + 1)) = (CHAR16) ((IndexArray[CurrIndex*3+2] == 2) ? WIDE_CHAR : NARROW_CHAR);\r