瀏覽代碼

Fixing parallel file list cleanup when creating a directory fails

Source commit: 600ba399c96d637d177298e06f0a6b23852a2d7b
Martin Prikryl 8 年之前
父節點
當前提交
13b44916fe
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      source/core/Terminal.cpp

+ 2 - 2
source/core/Terminal.cpp

@@ -801,11 +801,11 @@ void TParallelOperation::Done(const UnicodeString & FileName, bool Dir, bool Suc
           TStrings * Files = DebugNotNull(dynamic_cast<TStrings *>(FFileList->Objects[0]));
           for (int Index = 0; Index < Files->Count; Index++)
           {
-            if (StartsText(Files->Strings[Index], FileNameWithSlash))
+            if (StartsText(FileNameWithSlash, Files->GetFileName(Index)))
             {
               // We should add the file to "skip" counters in the OperationProgress,
               // but an interactive foreground transfer is not doing that either yet.
-              FFileList->Delete(Index);
+              Files->Delete(Index);
             }
           }
         }