X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdePkg%2FLibrary%2FUefiDevicePathLib%2FUefiDevicePathLib.c;h=46c5c058f31e3e7edfca1652064b7a92acedb9fb;hb=a9b896f453c83a6f0af653c9c153014a37129453;hp=15b16a237adabb3323da54f06ff95955abd4a79f;hpb=8f0dd97eab98969bb26825852cb498f22daa4efd;p=mirror_edk2.git diff --git a/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c b/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c index 15b16a237a..46c5c058f3 100644 --- a/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c +++ b/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c @@ -153,7 +153,7 @@ IsDevicePathEndType ( ) { ASSERT (Node != NULL); - return (BOOLEAN) ((DevicePathType (Node) & 0x7f) == END_DEVICE_PATH_TYPE); + return (BOOLEAN) (DevicePathType (Node) == END_DEVICE_PATH_TYPE); } /**