Skip to content

Commit

Permalink
Bug 1462: Failure when moving "Download and Delete" operation to back…
Browse files Browse the repository at this point in the history
…ground (2nd try)

https://winscp.net/tracker/1462

Source commit: b36693750558782ef87587846be071ba08af777b
  • Loading branch information
martinprikryl committed Jan 28, 2018
1 parent 1bf2ed9 commit e163377
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/core/RemoteFiles.cpp
Expand Up @@ -1487,10 +1487,11 @@ void __fastcall TRemoteFileList::AddFile(TRemoteFile * File)
TStrings * __fastcall TRemoteFileList::CloneStrings(TStrings * List)
{
std::unique_ptr<TStringList> Result(new TStringList());
Result->OwnsObjects = true;
for (int Index = 0; Index < List->Count; Index++)
{
TRemoteFile * File = static_cast<TRemoteFile *>(List->Objects[Index]);
Result->AddObject(List->Strings[Index], File);
Result->AddObject(List->Strings[Index], File->Duplicate(true));
}
return Result.release();
}
Expand Down

0 comments on commit e163377

Please sign in to comment.