mirror of https://github.com/acidanthera/audk.git
Fix ICC compilation failure. No functionality impact.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11456 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
320587dac3
commit
b36653bc16
|
@ -1153,6 +1153,7 @@ DevPathFromTextAcpiAdr (
|
|||
CHAR16 *DisplayDeviceStr;
|
||||
ACPI_ADR_DEVICE_PATH *AcpiAdr;
|
||||
UINTN Index;
|
||||
UINTN Length;
|
||||
|
||||
AcpiAdr = (ACPI_ADR_DEVICE_PATH *) CreateDeviceNode (
|
||||
ACPI_DEVICE_PATH,
|
||||
|
@ -1167,13 +1168,14 @@ DevPathFromTextAcpiAdr (
|
|||
break;
|
||||
}
|
||||
if (Index > 0) {
|
||||
Length = DevicePathNodeLength (AcpiAdr);
|
||||
AcpiAdr = ReallocatePool (
|
||||
DevicePathNodeLength (AcpiAdr),
|
||||
DevicePathNodeLength (AcpiAdr) + sizeof (UINT32),
|
||||
Length,
|
||||
Length + sizeof (UINT32),
|
||||
AcpiAdr
|
||||
);
|
||||
ASSERT (AcpiAdr != NULL);
|
||||
SetDevicePathNodeLength (AcpiAdr, DevicePathNodeLength (AcpiAdr) + sizeof (UINT32));
|
||||
SetDevicePathNodeLength (AcpiAdr, Length + sizeof (UINT32));
|
||||
}
|
||||
|
||||
(&AcpiAdr->ADR)[Index] = (UINT32) Strtoi (DisplayDeviceStr);
|
||||
|
|
Loading…
Reference in New Issue