X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdePkg%2FLibrary%2FDxeHstiLib%2FHstiDxe.c;h=114a76752607f0896917ceeb5447308dcdb80c72;hb=57ce74ac5ff4950b4bebd5bb1d8fa2024ecc1010;hp=d5d75749874382c7f82dd657e67a299408cfa259;hpb=6a39a6a1a8a35a84e4e13900a2b5e8da1b6435f2;p=mirror_edk2.git diff --git a/MdePkg/Library/DxeHstiLib/HstiDxe.c b/MdePkg/Library/DxeHstiLib/HstiDxe.c index d5d7574987..114a767526 100644 --- a/MdePkg/Library/DxeHstiLib/HstiDxe.c +++ b/MdePkg/Library/DxeHstiLib/HstiDxe.c @@ -200,12 +200,12 @@ InternalHstiIsValidTable ( // // Check ImplementationID // - for (Index = 0; Index < sizeof(Hsti->ImplementationID); Index++) { + for (Index = 0; Index < sizeof(Hsti->ImplementationID)/sizeof(Hsti->ImplementationID[0]); Index++) { if (Hsti->ImplementationID[Index] == 0) { break; } } - if (Index == sizeof(Hsti->ImplementationID)) { + if (Index == sizeof(Hsti->ImplementationID)/sizeof(Hsti->ImplementationID[0])) { DEBUG ((EFI_D_ERROR, "ImplementationID is no NUL CHAR\n")); return FALSE; }