git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9724
6f19259b-4bc3-4df7-8a09-
765794883524
FreePool (HiiString);\r
} else {\r
NewLoadContext->Description = AllocateZeroPool (StrSize((UINT16*)LoadOptionPtr));\r
FreePool (HiiString);\r
} else {\r
NewLoadContext->Description = AllocateZeroPool (StrSize((UINT16*)LoadOptionPtr));\r
- StrCpy(NewLoadContext->Description, (UINT16*)LoadOptionPtr);\r
+ ASSERT (NewLoadContext->Description != NULL);\r
+ StrCpy (NewLoadContext->Description, (UINT16*)LoadOptionPtr);\r
}\r
\r
ASSERT (NewLoadContext->Description != NULL);\r
}\r
\r
ASSERT (NewLoadContext->Description != NULL);\r
+ ASSERT (CurrentChildNode != NULL);\r
if (CurrentChildNode->EncapsulatedStreamHandle != NULL_STREAM_HANDLE) {\r
//\r
// If the current node is an encapsulating node, recurse into it...\r
if (CurrentChildNode->EncapsulatedStreamHandle != NULL_STREAM_HANDLE) {\r
//\r
// If the current node is an encapsulating node, recurse into it...\r
if (EFI_ERROR (Status)) {\r
return Status;\r
}\r
if (EFI_ERROR (Status)) {\r
return Status;\r
}\r
- ASSERT (CurrentChildNode != NULL);\r
} else {\r
ASSERT (EFI_ERROR (ErrorStatus));\r
return ErrorStatus;\r
} else {\r
ASSERT (EFI_ERROR (ErrorStatus));\r
return ErrorStatus;\r