summaryrefslogtreecommitdiff
path: root/MdePkg/Library/UefiLib/UefiNotTiano.c
diff options
context:
space:
mode:
Diffstat (limited to 'MdePkg/Library/UefiLib/UefiNotTiano.c')
-rw-r--r--MdePkg/Library/UefiLib/UefiNotTiano.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/MdePkg/Library/UefiLib/UefiNotTiano.c b/MdePkg/Library/UefiLib/UefiNotTiano.c
index 19a7a19a22..b621963fbc 100644
--- a/MdePkg/Library/UefiLib/UefiNotTiano.c
+++ b/MdePkg/Library/UefiLib/UefiNotTiano.c
@@ -283,9 +283,8 @@ EfiGetNameGuidFromFwVolDevicePathNode (
{
ASSERT (FvFileDevicePathNode != NULL);
- if (FvFileDevicePathNode->Header.Type == MEDIA_DEVICE_PATH &&
- FvFileDevicePathNode->Header.SubType == MEDIA_PIWG_FW_FILE_DP
- ) {
+ if (DevicePathType (&FvFileDevicePathNode->Header) == MEDIA_DEVICE_PATH &&
+ DevicePathSubType (&FvFileDevicePathNode->Header) == MEDIA_PIWG_FW_FILE_DP) {
return (EFI_GUID *) &FvFileDevicePathNode->FvFileName;
}