diff options
-rw-r--r-- | MdePkg/Library/DxeHstiLib/HstiDxe.c | 4 |
1 files changed, 2 insertions, 2 deletions
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;
}
|