]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/UefiLib/UefiNotTiano.c
Use Device Path Macros to get Device Path Type/SubType. (Some extensions might use...
[mirror_edk2.git] / MdePkg / Library / UefiLib / UefiNotTiano.c
index 19a7a19a22f936028ec5a4bf3692be0411199801..b621963fbc7430c672f29c81c158ddb7429f5a6a 100644 (file)
@@ -283,9 +283,8 @@ EfiGetNameGuidFromFwVolDevicePathNode (
 {\r
   ASSERT (FvFileDevicePathNode != NULL);\r
 \r
-  if (FvFileDevicePathNode->Header.Type == MEDIA_DEVICE_PATH &&\r
-      FvFileDevicePathNode->Header.SubType == MEDIA_PIWG_FW_FILE_DP\r
-     ) {\r
+  if (DevicePathType (&FvFileDevicePathNode->Header) == MEDIA_DEVICE_PATH &&\r
+      DevicePathSubType (&FvFileDevicePathNode->Header) == MEDIA_PIWG_FW_FILE_DP) {\r
     return (EFI_GUID *) &FvFileDevicePathNode->FvFileName;\r
   }\r
 \r