mirror of https://github.com/acidanthera/audk.git
SecurityPkg: Tcg2Smm: Fix type casting issue
Fix type casting issue introduced by cd64301398
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Chao Zhang <chao.b.zhang@intel.com>
Reviewed-by: Gao Liming <liming.gao@intel.com>
This commit is contained in:
parent
6d40ea81fc
commit
0c687d02c7
|
@ -284,8 +284,8 @@ UpdatePPVersion (
|
|||
for (DataPtr = (UINT8 *)(Table + 1);
|
||||
DataPtr <= (UINT8 *) ((UINT8 *) Table + Table->Length - PHYSICAL_PRESENCE_VERSION_SIZE);
|
||||
DataPtr += 1) {
|
||||
if (AsciiStrCmp(DataPtr, PHYSICAL_PRESENCE_VERSION_TAG) == 0) {
|
||||
Status = AsciiStrCpyS(DataPtr, PHYSICAL_PRESENCE_VERSION_SIZE, PPVer);
|
||||
if (AsciiStrCmp((CHAR8 *)DataPtr, PHYSICAL_PRESENCE_VERSION_TAG) == 0) {
|
||||
Status = AsciiStrCpyS((CHAR8 *)DataPtr, PHYSICAL_PRESENCE_VERSION_SIZE, PPVer);
|
||||
DEBUG((EFI_D_INFO, "TPM2 Physical Presence Interface Version update status 0x%x\n", Status));
|
||||
return Status;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue