git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2219
6f19259b-4bc3-4df7-8a09-
765794883524
// Need some memory for OptionList. Allow for up to 8 options.\r
//\r
OptionList = AllocateZeroPool (sizeof (IFR_OPTION) * 8);\r
// Need some memory for OptionList. Allow for up to 8 options.\r
//\r
OptionList = AllocateZeroPool (sizeof (IFR_OPTION) * 8);\r
+ ASSERT (OptionList != NULL);\r
\r
//\r
// Allocate space for creation of Buffer\r
//\r
UpdateData = AllocateZeroPool (0x1000);\r
\r
//\r
// Allocate space for creation of Buffer\r
//\r
UpdateData = AllocateZeroPool (0x1000);\r
+ ASSERT (UpdateData != NULL);\r
\r
//\r
// Remove all the op-codes starting with Label 0x2222 to next Label (second label is for convenience\r
\r
//\r
// Remove all the op-codes starting with Label 0x2222 to next Label (second label is for convenience\r
// Need some memory for OptionList. Allow for up to 8 options.\r
//\r
OptionList = AllocateZeroPool (sizeof (IFR_OPTION) * 8);\r
// Need some memory for OptionList. Allow for up to 8 options.\r
//\r
OptionList = AllocateZeroPool (sizeof (IFR_OPTION) * 8);\r
+ ASSERT (OptionList != NULL);\r
\r
//\r
// Allocate space for creation of Buffer\r
//\r
UpdateData = AllocateZeroPool (0x1000);\r
\r
//\r
// Allocate space for creation of Buffer\r
//\r
UpdateData = AllocateZeroPool (0x1000);\r
+ ASSERT (UpdateData != NULL);\r
\r
//\r
// Remove all the op-codes starting with Label 0x2222 to next Label (second label is for convenience\r
\r
//\r
// Remove all the op-codes starting with Label 0x2222 to next Label (second label is for convenience\r
0x1000,\r
(VOID **) &UpdateData\r
);\r
0x1000,\r
(VOID **) &UpdateData\r
);\r
+ ASSERT_EFI_ERROR (Status);\r
\r
ZeroMem (UpdateData, 0x1000);\r
\r
\r
ZeroMem (UpdateData, 0x1000);\r
\r
0x1000,\r
(VOID **)&UpdateData\r
);\r
0x1000,\r
(VOID **)&UpdateData\r
);\r
+ ASSERT_EFI_ERROR (Status);\r
\r
ZeroMem (UpdateData, 0x1000);\r
\r
\r
ZeroMem (UpdateData, 0x1000);\r
\r
sizeof (EFI_HII_CALLBACK_PACKET) + sizeof (SAMPLE_STRING) + 2,\r
(VOID **) Packet\r
);\r
sizeof (EFI_HII_CALLBACK_PACKET) + sizeof (SAMPLE_STRING) + 2,\r
(VOID **) Packet\r
);\r
+ ASSERT_EFI_ERROR (Status);\r
\r
ZeroMem (*Packet, sizeof (EFI_HII_CALLBACK_PACKET) + sizeof (SAMPLE_STRING) + 2);\r
\r
\r
ZeroMem (*Packet, sizeof (EFI_HII_CALLBACK_PACKET) + sizeof (SAMPLE_STRING) + 2);\r
\r
sizeof (EFI_HII_CALLBACK_PACKET) + 2,\r
(VOID **) Packet\r
);\r
sizeof (EFI_HII_CALLBACK_PACKET) + 2,\r
(VOID **) Packet\r
);\r
+ ASSERT_EFI_ERROR (Status);\r
\r
ZeroMem (*Packet, sizeof (EFI_HII_CALLBACK_PACKET) + 2);\r
\r
\r
ZeroMem (*Packet, sizeof (EFI_HII_CALLBACK_PACKET) + 2);\r
\r
0x1000,\r
(VOID **) &UpdateData\r
);\r
0x1000,\r
(VOID **) &UpdateData\r
);\r
+ ASSERT_EFI_ERROR (Status);\r
\r
ZeroMem (UpdateData, 0x1000);\r
\r
\r
ZeroMem (UpdateData, 0x1000);\r
\r
TempBufferSize += PackageInstance->IfrSize + PackageInstance->StringSize;\r
\r
TempBuffer = AllocateZeroPool (TempBufferSize);\r
TempBufferSize += PackageInstance->IfrSize + PackageInstance->StringSize;\r
\r
TempBuffer = AllocateZeroPool (TempBufferSize);\r
+ ASSERT (TempBuffer != NULL);\r
+\r
OrigTempBuffer = TempBuffer;\r
\r
//\r
OrigTempBuffer = TempBuffer;\r
\r
//\r
//\r
if (StrLen (StringPtr) > (PopUpWidth - 1)) {\r
TempStringPtr = AllocateZeroPool (sizeof (CHAR16) * (PopUpWidth - 1));\r
//\r
if (StrLen (StringPtr) > (PopUpWidth - 1)) {\r
TempStringPtr = AllocateZeroPool (sizeof (CHAR16) * (PopUpWidth - 1));\r
+ ASSERT (TempStringPtr != NULL);\r
CopyMem (TempStringPtr, StringPtr, (sizeof (CHAR16) * (PopUpWidth - 5)));\r
gBS->FreePool (StringPtr);\r
StringPtr = TempStringPtr;\r
CopyMem (TempStringPtr, StringPtr, (sizeof (CHAR16) * (PopUpWidth - 5)));\r
gBS->FreePool (StringPtr);\r
StringPtr = TempStringPtr;\r
FileFormTags->VariableDefinitions->VariableFakeSize = (UINT16) (FileFormTags->VariableDefinitions->VariableFakeSize + FileFormTags->VariableDefinitions->VariableSize);\r
\r
FileFormTags->VariableDefinitions->NvRamMap = AllocateZeroPool (FileFormTags->VariableDefinitions->VariableSize);\r
FileFormTags->VariableDefinitions->VariableFakeSize = (UINT16) (FileFormTags->VariableDefinitions->VariableFakeSize + FileFormTags->VariableDefinitions->VariableSize);\r
\r
FileFormTags->VariableDefinitions->NvRamMap = AllocateZeroPool (FileFormTags->VariableDefinitions->VariableSize);\r
+ ASSERT (FileFormTags->VariableDefinitions->NvRamMap != NULL);\r
+\r
FileFormTags->VariableDefinitions->FakeNvRamMap = AllocateZeroPool (NvMapSize + FileFormTags->VariableDefinitions->VariableFakeSize);\r
FileFormTags->VariableDefinitions->FakeNvRamMap = AllocateZeroPool (NvMapSize + FileFormTags->VariableDefinitions->VariableFakeSize);\r
+ ASSERT (FileFormTags->VariableDefinitions->FakeNvRamMap != NULL);\r
\r
CopyMem (FileFormTags->VariableDefinitions->NvRamMap, NvMap, NvMapSize);\r
gBS->FreePool (NvMapListHead);\r
\r
CopyMem (FileFormTags->VariableDefinitions->NvRamMap, NvMap, NvMapSize);\r
gBS->FreePool (NvMapListHead);\r