]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFrameworkPkg/Library/UefiLibFramework/UefiNotTiano.c
Use Device Path Macros to get Device Path Type/SubType. (Some extensions might use...
[mirror_edk2.git] / IntelFrameworkPkg / Library / UefiLibFramework / UefiNotTiano.c
index d3c832ff7e0d321ca6077ae7820ff7ce770d2d36..b920db01e1b0996edb5e089c6bfb9ca99ab2fc23 100644 (file)
@@ -297,8 +297,8 @@ EfiGetNameGuidFromFwVolDevicePathNode (
   //\r
   // Use the new Device path that does not conflict with the UEFI\r
   //\r
-  if (FrameworkFvDevicePathNode->Tiano.Header.Type == MEDIA_DEVICE_PATH &&\r
-      FrameworkFvDevicePathNode->Tiano.Header.SubType == MEDIA_VENDOR_DP) {\r
+  if (DevicePathType (&FrameworkFvDevicePathNode->Tiano.Header) == MEDIA_DEVICE_PATH &&\r
+      DevicePathSubType (&FrameworkFvDevicePathNode->Tiano.Header) == MEDIA_VENDOR_DP) {\r
     if (CompareGuid (&gEfiFrameworkDevicePathGuid, &FrameworkFvDevicePathNode->Tiano.TianoSpecificDevicePath)) {\r
       if (FrameworkFvDevicePathNode->Tiano.Type == TIANO_MEDIA_FW_VOL_FILEPATH_DEVICE_PATH_TYPE) {\r
         return (EFI_GUID *) &FrameworkFvDevicePathNode->NameGuid;\r
@@ -328,7 +328,7 @@ VOID
 EFIAPI\r
 EfiInitializeFwVolDevicepathNode (\r
   IN OUT MEDIA_FW_VOL_FILEPATH_DEVICE_PATH  *FvDevicePathNode,\r
-  IN CONST EFI_GUID                                   *NameGuid\r
+  IN CONST EFI_GUID                         *NameGuid\r
   )\r
 {\r
   FRAMEWORK_MEDIA_FW_VOL_FILEPATH_DEVICE_PATH  *FrameworkFvDevicePathNode;\r