]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Library/DxePlatDriOverLib/PlatDriOverLib.c
1, Add <Library/DevicePathLib.h> for all source that use device path utility macros
[mirror_edk2.git] / MdeModulePkg / Library / DxePlatDriOverLib / PlatDriOverLib.c
index 21bfb8a7c288b771ec1c71cb3554c5f61e57c115..b746c68bf5ca247d43d3a626dbbe1978e8976baa 100644 (file)
@@ -1590,9 +1590,9 @@ UpdateFvFileDevicePath (
   //\r
   TempDevicePath = *DevicePath;\r
   LastDeviceNode = TempDevicePath;\r
-  while (!EfiIsDevicePathEnd (TempDevicePath)) {\r
-    LastDeviceNode = TempDevicePath;\r
-    TempDevicePath = EfiNextDevicePathNode (TempDevicePath);\r
+  while (!IsDevicePathEnd (TempDevicePath)) {\r
+     LastDeviceNode = TempDevicePath;\r
+     TempDevicePath = NextDevicePathNode (TempDevicePath);\r
   }\r
   GuidPoint = EfiGetNameGuidFromFwVolDevicePathNode ((MEDIA_FW_VOL_FILEPATH_DEVICE_PATH *) LastDeviceNode);\r
   if (GuidPoint == NULL) {\r
@@ -1618,7 +1618,7 @@ UpdateFvFileDevicePath (
   //\r
   TempDevicePath = *DevicePath;\r
   HasFvNode = FALSE;\r
-  while (!EfiIsDevicePathEnd (TempDevicePath)) {\r
+  while (!IsDevicePathEnd (TempDevicePath)) {\r
     //\r
     // Use old Device Path\r
     //\r
@@ -1627,7 +1627,7 @@ UpdateFvFileDevicePath (
       HasFvNode = TRUE;\r
       break;\r
     }\r
-    TempDevicePath = EfiNextDevicePathNode (TempDevicePath);\r
+    TempDevicePath = NextDevicePathNode (TempDevicePath);\r
   }\r
 \r
   if (!HasFvNode) {\r