mirror of https://github.com/acidanthera/audk.git
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:
parent
6d9a0f280d
commit
326f0711dc
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue