1, Add <Library/DevicePathLib.h> for all source that use device path utility macros
2, Add DevicePathLib library class to module's INF that use device path utility macros git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6456 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -759,7 +759,7 @@ GetUsbDPFromFullDP (
|
||||
// Get the Usb part first Begin node in full device path
|
||||
//
|
||||
UsbDevicePathBeginPtr = DevicePath;
|
||||
while ( (!EfiIsDevicePathEnd (UsbDevicePathBeginPtr))&&
|
||||
while ( (!IsDevicePathEnd (UsbDevicePathBeginPtr))&&
|
||||
((UsbDevicePathBeginPtr->Type != MESSAGING_DEVICE_PATH) ||
|
||||
(UsbDevicePathBeginPtr->SubType != MSG_USB_DP &&
|
||||
UsbDevicePathBeginPtr->SubType != MSG_USB_CLASS_DP
|
||||
@@ -773,7 +773,7 @@ GetUsbDPFromFullDP (
|
||||
// Get the Usb part first End node in full device path
|
||||
//
|
||||
UsbDevicePathEndPtr = UsbDevicePathBeginPtr;
|
||||
while ((!EfiIsDevicePathEnd (UsbDevicePathEndPtr))&&
|
||||
while ((!IsDevicePathEnd (UsbDevicePathEndPtr))&&
|
||||
(UsbDevicePathEndPtr->Type == MESSAGING_DEVICE_PATH) &&
|
||||
(UsbDevicePathEndPtr->SubType == MSG_USB_DP ||
|
||||
UsbDevicePathEndPtr->SubType == MSG_USB_CLASS_DP
|
||||
|
Reference in New Issue
Block a user