//\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
//\r
TempDevicePath = *DevicePath;\r
HasFvNode = FALSE;\r
- while (!EfiIsDevicePathEnd (TempDevicePath)) {\r
+ while (!IsDevicePathEnd (TempDevicePath)) {\r
//\r
// Use old Device Path\r
//\r
HasFvNode = TRUE;\r
break;\r
}\r
- TempDevicePath = EfiNextDevicePathNode (TempDevicePath);\r
+ TempDevicePath = NextDevicePathNode (TempDevicePath);\r
}\r
\r
if (!HasFvNode) {\r