mirror of https://github.com/acidanthera/audk.git
SecurityPkg Tcg2ConfigDxe: Typecast to (CHAR8*) as para of AsciiStrSize
Cc: Dandan Bi <dandan.bi@intel.com> Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Chao Zhang <chao.b.zhang@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Chao Zhang <chao.b.zhang@intel.com> Reviewed-by: Dandan Bi <dandan.bi@intel.com>
This commit is contained in:
parent
6e5e544f22
commit
3613af9139
|
@ -90,7 +90,7 @@ InitializeTcg2VersionInfo (
|
|||
CopyMem (
|
||||
&PcdTcg2PpiVersion,
|
||||
PcdGetPtr (PcdTcgPhysicalPresenceInterfaceVer),
|
||||
AsciiStrSize (PcdGetPtr (PcdTcgPhysicalPresenceInterfaceVer))
|
||||
AsciiStrSize ((CHAR8 *) PcdGetPtr (PcdTcgPhysicalPresenceInterfaceVer))
|
||||
);
|
||||
|
||||
//
|
||||
|
@ -188,7 +188,7 @@ InitializeTcg2VersionInfo (
|
|||
CopyMem (
|
||||
&PcdTcg2PpiVersion,
|
||||
PcdGetPtr (PcdTcgPhysicalPresenceInterfaceVer),
|
||||
AsciiStrSize (PcdGetPtr (PcdTcgPhysicalPresenceInterfaceVer))
|
||||
AsciiStrSize ((CHAR8 *) PcdGetPtr (PcdTcgPhysicalPresenceInterfaceVer))
|
||||
);
|
||||
if (PcdTcg2PpiVersion != Tcg2Version.PpiVersion) {
|
||||
DEBUG ((DEBUG_WARN, "WARNING: PcdTcgPhysicalPresenceInterfaceVer is not DynamicHii type and maps to TCG2_VERSION.PpiVersion\n"));
|
||||
|
|
|
@ -495,7 +495,7 @@ Tcg2VersionInfoCallback (
|
|||
CopyMem (
|
||||
&PcdTcg2PpiVersion,
|
||||
PcdGetPtr (PcdTcgPhysicalPresenceInterfaceVer),
|
||||
AsciiStrSize (PcdGetPtr (PcdTcgPhysicalPresenceInterfaceVer))
|
||||
AsciiStrSize ((CHAR8 *) PcdGetPtr (PcdTcgPhysicalPresenceInterfaceVer))
|
||||
);
|
||||
if (PcdTcg2PpiVersion != Value->u64) {
|
||||
CreatePopUp (
|
||||
|
|
Loading…
Reference in New Issue