IN CONST CHAR8 *Token\r
)\r
{\r
+ if (Token == NULL) {\r
+ return FALSE;\r
+ }\r
+\r
if (AsciiStrCmp (Token, SEC_TOK) == 0 ||\r
AsciiStrCmp (Token, PEI_TOK) == 0 ||\r
AsciiStrCmp (Token, DXE_TOK) == 0 ||\r
\r
//\r
// If PERF_START()/PERF_END() have specified the ProgressID,it has high priority.\r
- // !!! Note: If the Pref is not the known Token used in the core but have same\r
+ // !!! Note: If the Perf is not the known Token used in the core but have same\r
// ID with the core Token, this case will not be supported.\r
// And in currtnt usage mode, for the unkown ID, there is a general rule:\r
// If it is start pref: the lower 4 bits of the ID should be 0.\r