//\r
// Check ImplementationID\r
//\r
- for (Index = 0; Index < sizeof(Hsti->ImplementationID); Index++) {\r
+ for (Index = 0; Index < sizeof(Hsti->ImplementationID)/sizeof(Hsti->ImplementationID[0]); Index++) {\r
if (Hsti->ImplementationID[Index] == 0) {\r
break;\r
}\r
}\r
- if (Index == sizeof(Hsti->ImplementationID)) {\r
+ if (Index == sizeof(Hsti->ImplementationID)/sizeof(Hsti->ImplementationID[0])) {\r
DEBUG ((EFI_D_ERROR, "ImplementationID is no NUL CHAR\n"));\r
return FALSE;\r
}\r
return EFI_OUT_OF_RESOURCES;\r
}\r
HstiAip->Hsti = AllocateCopyPool (HstiSize, Hsti);\r
- if (HstiAip == NULL) {\r
+ if (HstiAip->Hsti == NULL) {\r
FreePool (HstiAip);\r
return EFI_OUT_OF_RESOURCES;\r
}\r
UINT8 *SecurityFeaturesVerified;\r
EFI_STATUS Status;\r
\r
- Aip = InternalHstiFindAip (Role, ImplementationID, &Hsti, &HstiSize);\r
+ Aip = InternalHstiFindAip (Role, ImplementationID, (VOID **)&Hsti, &HstiSize);\r
if (Aip == NULL) {\r
return EFI_NOT_STARTED;\r
}\r
UINTN Offset;\r
EFI_STATUS Status;\r
\r
- Aip = InternalHstiFindAip (Role, ImplementationID, &Hsti, &HstiSize);\r
+ Aip = InternalHstiFindAip (Role, ImplementationID, (VOID **)&Hsti, &HstiSize);\r
if (Aip == NULL) {\r
return EFI_NOT_STARTED;\r
}\r