mirror of https://github.com/acidanthera/audk.git
DxeTpmMeasureBootLib: Change global variable name to avoid name conflict.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19334 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
f7de74afdd
commit
a00bd8e0e6
|
@ -53,7 +53,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||
BOOLEAN mMeasureGptTableFlag = FALSE;
|
||||
UINTN mMeasureGptCount = 0;
|
||||
VOID *mFileBuffer;
|
||||
UINTN mImageSize;
|
||||
UINTN mTpmImageSize;
|
||||
//
|
||||
// Measured FV handle cache
|
||||
//
|
||||
|
@ -95,11 +95,11 @@ DxeTpmMeasureBootLibImageRead (
|
|||
}
|
||||
|
||||
EndPosition = FileOffset + *ReadSize;
|
||||
if (EndPosition > mImageSize) {
|
||||
*ReadSize = (UINT32)(mImageSize - FileOffset);
|
||||
if (EndPosition > mTpmImageSize) {
|
||||
*ReadSize = (UINT32)(mTpmImageSize - FileOffset);
|
||||
}
|
||||
|
||||
if (FileOffset >= mImageSize) {
|
||||
if (FileOffset >= mTpmImageSize) {
|
||||
*ReadSize = 0;
|
||||
}
|
||||
|
||||
|
@ -908,7 +908,7 @@ DxeTpmMeasureBootHandler (
|
|||
goto Finish;
|
||||
}
|
||||
|
||||
mImageSize = FileSize;
|
||||
mTpmImageSize = FileSize;
|
||||
mFileBuffer = FileBuffer;
|
||||
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue