mirror of https://github.com/acidanthera/audk.git
Fix ICC build break.
Signed-off-by: ydong10 Reviewed-by: git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11701 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
e439df5074
commit
46cc3885e6
|
@ -444,10 +444,11 @@ CreateAltCfgString (
|
|||
EFI_STRING TmpStr;
|
||||
UINTN NewLen;
|
||||
|
||||
NewLen = StrLen (Result);
|
||||
//
|
||||
// String Len = ConfigResp + AltConfig + AltConfig + 1("\0")
|
||||
//
|
||||
NewLen = (StrLen (Result) + ((1 + StrLen (ConfigHdr) + 8 + 4) + (8 + 4 + 7 + 4 + 7 + 4)) * 2 + 1) * sizeof (CHAR16);
|
||||
NewLen = (NewLen + ((1 + StrLen (ConfigHdr) + 8 + 4) + (8 + 4 + 7 + 4 + 7 + 4)) * 2 + 1) * sizeof (CHAR16);
|
||||
StringPtr = AllocateZeroPool (NewLen);
|
||||
if (StringPtr == NULL) {
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in New Issue