diff options
author | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-10-26 09:38:17 +0000 |
---|---|---|
committer | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-10-26 09:38:17 +0000 |
commit | 326f0711dc8dd443908ca856df138e93d0eca557 (patch) | |
tree | b834a6438b7a4cbf285d7510245bc9494efcb7db /IntelFrameworkModulePkg | |
parent | 6d9a0f280d49fd1000fa685ee1392f45ff998e69 (diff) | |
download | edk2-platforms-326f0711dc8dd443908ca856df138e93d0eca557.tar.xz |
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
Diffstat (limited to 'IntelFrameworkModulePkg')
-rw-r--r-- | IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/UpdatePage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/UpdatePage.c b/IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/UpdatePage.c index 5146399dd4..8914b439ef 100644 --- a/IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/UpdatePage.c +++ b/IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/UpdatePage.c @@ -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;
|