//\r
Len = StrSize (ControllerName);\r
NewString = AllocateZeroPool (Len + StrSize (L"--"));\r
+ ASSERT (NewString != NULL);\r
if (EFI_ERROR (CheckMapping (ControllerDevicePath,NULL, &mMappingDataBase, NULL, NULL))) {\r
StrCat (NewString, L"--");\r
} else {\r
// First create the driver image name\r
//\r
NewString = AllocateZeroPool (StrSize (DriverName));\r
+ ASSERT (NewString != NULL); \r
if (EFI_ERROR (CheckMapping (mControllerDevicePathProtocol[mSelectedCtrIndex], LoadedImageDevicePath, &mMappingDataBase, NULL, NULL))) {\r
FakeNvData->DriSelection[Index] = 0x00;\r
} else {\r
}\r
\r
IfrOptionList = AllocateZeroPool (sizeof (IFR_OPTION) * mSelectedDriverImageNum);\r
- ASSERT_EFI_ERROR (IfrOptionList != NULL);\r
+ ASSERT (IfrOptionList != NULL);\r
//\r
// Create order list for those selected drivers\r
//\r