Skip to content

Commit

Permalink
DxeTpmMeasureBootLib: Change global variable name to avoid name confl…
Browse files Browse the repository at this point in the history
…ict.

(Sync patch r19334 from main trunk.)

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <[email protected]>
Reviewed-by: Liming Gao <[email protected]>

git-svn-id: https://svn.code.sf.net/p/edk2/code/branches/UDK2015@19366 6f19259b-4bc3-4df7-8a09-765794883524
  • Loading branch information
ydong10 authored and vanjeff committed Dec 18, 2015
1 parent e5cdee8 commit 36f30d4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions SecurityPkg/Library/DxeTpmMeasureBootLib/DxeTpmMeasureBootLib.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
//
Expand Down Expand Up @@ -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;
}

Expand Down Expand Up @@ -908,7 +908,7 @@ DxeTpmMeasureBootHandler (
goto Finish;
}

mImageSize = FileSize;
mTpmImageSize = FileSize;
mFileBuffer = FileBuffer;

//
Expand Down

0 comments on commit 36f30d4

Please sign in to comment.