Allocated one buffer to for option->description, since it may be released by BdsLibBootViaBootOption().

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9373 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
vanjeff 2009-10-26 09:38:17 +00:00
parent 6d9a0f280d
commit 326f0711dc
1 changed files with 1 additions and 1 deletions

View File

@ -180,7 +180,7 @@ BootThisFile (
Option = (BDS_COMMON_OPTION *) AllocatePool (sizeof (BDS_COMMON_OPTION));
ASSERT (Option != NULL);
Option->Description = FileContext->FileName;
Option->Description = (CHAR16 *) AllocateCopyPool (StrSize (FileContext->FileName), FileContext->FileName);
Option->DevicePath = FileContext->DevicePath;
Option->LoadOptionsSize = 0;
Option->LoadOptions = NULL;