mirror of https://github.com/acidanthera/audk.git
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:
parent
4da45e2027
commit
c6c18d879e
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue