\r
if (MethodStatus == TCG_METHOD_STATUS_CODE_AUTHORITY_LOCKED_OUT) {\r
DEBUG ((DEBUG_INFO, "unlock as admin failed with AUTHORITY_LOCKED_OUT\n"));\r
- goto done;\r
}\r
\r
//\r
\r
done:\r
if (MethodStatus != TCG_METHOD_STATUS_CODE_SUCCESS) {\r
- Ret = TcgResultFailure;\r
+ if (MethodStatus == TCG_METHOD_STATUS_CODE_AUTHORITY_LOCKED_OUT) {\r
+ //\r
+ // Caller need to know this special error, but return status not has type for it.\r
+ // so here use TcgResultFailureInvalidType as an replacement.\r
+ //\r
+ Ret = TcgResultFailureInvalidType;\r
+ } else {\r
+ Ret = TcgResultFailure;\r
+ }\r
}\r
return Ret;\r
}\r
/**\r
Calculate the estimated time.\r
\r
- @param[in] IsMinite Whether the input time value is minute type or second type.\r
+ @param[in] IsMinute Whether the input time value is minute type or second type.\r
@param[in] Time The input time value.\r
\r
**/\r