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:
klu2
2008-11-11 15:42:40 +00:00
parent e5dab01618
commit 1232b21473
21 changed files with 61 additions and 295 deletions

View File

@ -1590,9 +1590,9 @@ UpdateFvFileDevicePath (
//
TempDevicePath = *DevicePath;
LastDeviceNode = TempDevicePath;
while (!EfiIsDevicePathEnd (TempDevicePath)) {
LastDeviceNode = TempDevicePath;
TempDevicePath = EfiNextDevicePathNode (TempDevicePath);
while (!IsDevicePathEnd (TempDevicePath)) {
LastDeviceNode = TempDevicePath;
TempDevicePath = NextDevicePathNode (TempDevicePath);
}
GuidPoint = EfiGetNameGuidFromFwVolDevicePathNode ((MEDIA_FW_VOL_FILEPATH_DEVICE_PATH *) LastDeviceNode);
if (GuidPoint == NULL) {
@ -1618,7 +1618,7 @@ UpdateFvFileDevicePath (
//
TempDevicePath = *DevicePath;
HasFvNode = FALSE;
while (!EfiIsDevicePathEnd (TempDevicePath)) {
while (!IsDevicePathEnd (TempDevicePath)) {
//
// Use old Device Path
//
@ -1627,7 +1627,7 @@ UpdateFvFileDevicePath (
HasFvNode = TRUE;
break;
}
TempDevicePath = EfiNextDevicePathNode (TempDevicePath);
TempDevicePath = NextDevicePathNode (TempDevicePath);
}
if (!HasFvNode) {