瀏覽代碼

Incorrect assertion

Source commit: 482e7ee56211ae2bc94fc521a00986faba11dabb
Martin Prikryl 7 年之前
父節點
當前提交
eb1c89d9aa
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      source/forms/CustomScpExplorer.cpp

+ 2 - 1
source/forms/CustomScpExplorer.cpp

@@ -830,7 +830,8 @@ void __fastcall TCustomScpExplorerForm::SetTaskbarListProgressValue(TFileOperati
   if (ProgressData->Operation != foCalculateSize)
   {
     int OverallProgress;
-    if (DebugAlwaysTrue(FProgressForm != NULL) && (FProgressForm->SynchronizeProgress != NULL))
+    // FProgressForm is null when this is called from SetQueueProgress
+    if ((FProgressForm != NULL) && (FProgressForm->SynchronizeProgress != NULL))
     {
       OverallProgress = FProgressForm->SynchronizeProgress->Progress(ProgressData);
     }