FmpDevicePkg FmpDxe: Check Progress!= NULL before calling Progress(100)

Cc: Michael D Kinney <michael.d.kinney@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
This commit is contained in:
Star Zeng 2018-07-25 18:22:54 +08:00 committed by Kinney, Michael D
parent 4da45e2027
commit c6c18d879e
1 changed files with 6 additions and 4 deletions

View File

@ -1121,10 +1121,12 @@ cleanup:
mProgressSupported = FALSE; mProgressSupported = FALSE;
SetLastAttemptStatusInVariable (LastAttemptStatus); SetLastAttemptStatusInVariable (LastAttemptStatus);
// if (Progress != NULL) {
// Set progress to 100 after everything is done including recording Status. //
// // Set progress to 100 after everything is done including recording Status.
Progress (100); //
Progress (100);
}
return Status; return Status;
} }