mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-29 00:24:07 +02:00
Fix build broken issue for ICC 9.0
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8960 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
d595d4b13a
commit
7edfacbff8
@ -1050,7 +1050,7 @@ BOpt_GetBootOptions (
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (HiiString != NULL) {
|
if (HiiString != NULL) {
|
||||||
NewLoadContext->Description = AllocateZeroPool(StrSize((UINT16*)LoadOptionPtr) + StrSize(HiiString));
|
NewLoadContext->Description = AllocateZeroPool(StringSize + StrSize(HiiString));
|
||||||
StrCpy (NewLoadContext->Description, HiiString);
|
StrCpy (NewLoadContext->Description, HiiString);
|
||||||
if (StrnCmp ((UINT16*)LoadOptionPtr, L"0", 1) != 0) {
|
if (StrnCmp ((UINT16*)LoadOptionPtr, L"0", 1) != 0) {
|
||||||
StrCat (NewLoadContext->Description, L" ");
|
StrCat (NewLoadContext->Description, L" ");
|
||||||
|
@ -204,6 +204,7 @@ CallBootManager (
|
|||||||
CHAR16 *HiiString;
|
CHAR16 *HiiString;
|
||||||
CHAR16 *BootStringNumber;
|
CHAR16 *BootStringNumber;
|
||||||
UINTN DevicePathType;
|
UINTN DevicePathType;
|
||||||
|
UINTN BufferSize;
|
||||||
|
|
||||||
gOption = NULL;
|
gOption = NULL;
|
||||||
InitializeListHead (&BdsBootOptionList);
|
InitializeListHead (&BdsBootOptionList);
|
||||||
@ -312,7 +313,9 @@ CallBootManager (
|
|||||||
//
|
//
|
||||||
if (HiiString != NULL) {
|
if (HiiString != NULL) {
|
||||||
BootStringNumber = Option->Description;
|
BootStringNumber = Option->Description;
|
||||||
Option->Description = AllocateZeroPool(StrSize(BootStringNumber) + StrSize(HiiString));
|
BufferSize = StrSize(BootStringNumber);
|
||||||
|
BufferSize += StrSize(HiiString);
|
||||||
|
Option->Description = AllocateZeroPool(BufferSize);
|
||||||
StrCpy (Option->Description, HiiString);
|
StrCpy (Option->Description, HiiString);
|
||||||
if (StrnCmp (BootStringNumber, L"0", 1) != 0) {
|
if (StrnCmp (BootStringNumber, L"0", 1) != 0) {
|
||||||
StrCat (Option->Description, L" ");
|
StrCat (Option->Description, L" ");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user