Minor code enhancement.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9724 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -1062,7 +1062,8 @@ BOpt_GetBootOptions (
|
||||
FreePool (HiiString);
|
||||
} else {
|
||||
NewLoadContext->Description = AllocateZeroPool (StrSize((UINT16*)LoadOptionPtr));
|
||||
StrCpy(NewLoadContext->Description, (UINT16*)LoadOptionPtr);
|
||||
ASSERT (NewLoadContext->Description != NULL);
|
||||
StrCpy (NewLoadContext->Description, (UINT16*)LoadOptionPtr);
|
||||
}
|
||||
|
||||
ASSERT (NewLoadContext->Description != NULL);
|
||||
|
Reference in New Issue
Block a user