mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-23 13:44:33 +02:00
Fix ICC 9.1 build break
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11103 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
b4c9005886
commit
e74c3676e6
@ -175,6 +175,7 @@ Returns:
|
|||||||
EFI_OPEN_PROTOCOL_INFORMATION_ENTRY *OpenInfoBuffer;
|
EFI_OPEN_PROTOCOL_INFORMATION_ENTRY *OpenInfoBuffer;
|
||||||
UINTN EntryCount;
|
UINTN EntryCount;
|
||||||
UINTN Index;
|
UINTN Index;
|
||||||
|
BOOLEAN RemainingDevicePathContainsFlowControl;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Check RemainingDevicePath validation
|
// Check RemainingDevicePath validation
|
||||||
@ -261,6 +262,11 @@ Returns:
|
|||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// See if RemainingDevicePath has a Flow Control device path node
|
||||||
|
//
|
||||||
|
RemainingDevicePathContainsFlowControl = ContainsFlowControl (RemainingDevicePath);
|
||||||
|
|
||||||
for (Index = 0; Index < EntryCount; Index++) {
|
for (Index = 0; Index < EntryCount; Index++) {
|
||||||
if ((OpenInfoBuffer[Index].Attributes & EFI_OPEN_PROTOCOL_BY_CHILD_CONTROLLER) != 0) {
|
if ((OpenInfoBuffer[Index].Attributes & EFI_OPEN_PROTOCOL_BY_CHILD_CONTROLLER) != 0) {
|
||||||
Status = gBS->OpenProtocol (
|
Status = gBS->OpenProtocol (
|
||||||
@ -271,9 +277,10 @@ Returns:
|
|||||||
Handle,
|
Handle,
|
||||||
EFI_OPEN_PROTOCOL_GET_PROTOCOL
|
EFI_OPEN_PROTOCOL_GET_PROTOCOL
|
||||||
);
|
);
|
||||||
if (!EFI_ERROR (Status) &&
|
if (!EFI_ERROR (Status)) {
|
||||||
(ContainsFlowControl (RemainingDevicePath) ^ ContainsFlowControl (DevicePath))) {
|
if (RemainingDevicePathContainsFlowControl ^ ContainsFlowControl (DevicePath)) {
|
||||||
Status = EFI_UNSUPPORTED;
|
Status = EFI_UNSUPPORTED;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user