mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Reserve space for second and the rest files (Linux)
(cherry picked from commit 3f3343856c)
This commit is contained in:
parent
200a718538
commit
3cf34c9a9f
1 changed files with 6 additions and 2 deletions
|
|
@ -699,7 +699,11 @@ begin
|
|||
begin
|
||||
bRetryWrite:= FReserveSpace;
|
||||
FReserveSpace:= False;
|
||||
OpenTargetFile;
|
||||
try
|
||||
OpenTargetFile;
|
||||
finally
|
||||
FReserveSpace:= bRetryWrite;
|
||||
end;
|
||||
if not Assigned(TargetFileStream) then
|
||||
Exit;
|
||||
|
||||
|
|
@ -728,7 +732,7 @@ begin
|
|||
Exit;
|
||||
end;
|
||||
|
||||
if bRetryWrite then
|
||||
if FReserveSpace then
|
||||
begin
|
||||
TargetFileStream.Size:= SourceFileStream.Size;
|
||||
TargetFileStream.Seek(0, fsFromBeginning);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue