From 8e1ac15ab89d289a42bd687a91b94d1c4284d3f1 Mon Sep 17 00:00:00 2001 From: klu2 Date: Tue, 11 Nov 2008 15:50:13 +0000 Subject: [PATCH] 1, Add 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@6460 6f19259b-4bc3-4df7-8a09-765794883524 --- DuetPkg/FvbRuntimeService/FWBlockService.c | 2 +- DuetPkg/PciBusNoEnumerationDxe/PciDeviceSupport.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/DuetPkg/FvbRuntimeService/FWBlockService.c b/DuetPkg/FvbRuntimeService/FWBlockService.c index faca5ea422..6926a43dcf 100644 --- a/DuetPkg/FvbRuntimeService/FWBlockService.c +++ b/DuetPkg/FvbRuntimeService/FWBlockService.c @@ -1751,7 +1751,7 @@ Returns: NULL ); ASSERT_EFI_ERROR (Status); - } else if (EfiIsDevicePathEnd (TempFwbDevicePath)) { + } else if (IsDevicePathEnd (TempFwbDevicePath)) { // // Device allready exists, so reinstall the FVB protocol // diff --git a/DuetPkg/PciBusNoEnumerationDxe/PciDeviceSupport.c b/DuetPkg/PciBusNoEnumerationDxe/PciDeviceSupport.c index a33ce38af7..83ab7de0f6 100644 --- a/DuetPkg/PciBusNoEnumerationDxe/PciDeviceSupport.c +++ b/DuetPkg/PciBusNoEnumerationDxe/PciDeviceSupport.c @@ -598,8 +598,8 @@ Returns: // // Get the next device path // - CurrentDevicePath = EfiNextDevicePathNode (RemainingDevicePath); - if (EfiIsDevicePathEnd (CurrentDevicePath)) { + CurrentDevicePath = NextDevicePathNode (RemainingDevicePath); + if (IsDevicePathEnd (CurrentDevicePath)) { return EFI_SUCCESS; }