X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdeModulePkg%2FLibrary%2FUefiIfrSupportLib%2FUefiIfrOpCodeCreation.c;h=026cc0f0680dbcbd725bc5a7ca2348f4433781ec;hb=b99828832108937c999f72f6a0b78cd791df5cc9;hp=9b48a27e1927ad028932977216c053e35e618b39;hpb=08e4b3cfed01e5c92ac404fb061beda52f39f638;p=mirror_edk2.git diff --git a/MdeModulePkg/Library/UefiIfrSupportLib/UefiIfrOpCodeCreation.c b/MdeModulePkg/Library/UefiIfrSupportLib/UefiIfrOpCodeCreation.c index 9b48a27e19..026cc0f068 100644 --- a/MdeModulePkg/Library/UefiIfrSupportLib/UefiIfrOpCodeCreation.c +++ b/MdeModulePkg/Library/UefiIfrSupportLib/UefiIfrOpCodeCreation.c @@ -33,7 +33,7 @@ IsValidQuestionFlags ( IN UINT8 Flags ) { - return (BOOLEAN) (((Flags & (~QUESTION_FLAGS)) != 0) ? FALSE : TRUE); + return (BOOLEAN) (((Flags & QUESTION_FLAGS_MASK) != 0) ? FALSE : TRUE); } /**