Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: "Yao, Jiewen" <jiewen.yao@intel.com>
Reviewed-by: "Qiu, Shumin" <shumin.qiu@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16637
6f19259b-4bc3-4df7-8a09-
765794883524
//\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