]> git.proxmox.com Git - mirror_edk2.git/blobdiff - FmpDevicePkg/FmpDxe/FmpDxe.c
FmpDevicePkg FmpDxe: Check Progress!= NULL before calling Progress(100)
[mirror_edk2.git] / FmpDevicePkg / FmpDxe / FmpDxe.c
index 091f950b95b23a7a2811b3060748ba04395c023f..f0e8b0da823a342938739628dfce06544ac6a74a 100644 (file)
@@ -1121,10 +1121,12 @@ cleanup:
   mProgressSupported = FALSE;\r
   SetLastAttemptStatusInVariable (LastAttemptStatus);\r
 \r
-  //\r
-  // Set progress to 100 after everything is done including recording Status.\r
-  //\r
-  Progress (100);\r
+  if (Progress != NULL) {\r
+    //\r
+    // Set progress to 100 after everything is done including recording Status.\r
+    //\r
+    Progress (100);\r
+  }\r
 \r
   return Status;\r
 }\r