mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Unconditional file overwrite on Shift + F4 when name has trailing whitespace (fixes #786)
(cherry picked from commit 0c6273c3cf)
This commit is contained in:
parent
b0ca10d89b
commit
2e2456d78b
1 changed files with 1 additions and 1 deletions
|
|
@ -3711,10 +3711,10 @@ begin
|
|||
|
||||
PushPop(AElevate);
|
||||
try
|
||||
sNewFile := TrimPath(sNewFile);
|
||||
Attrs := FileGetAttrUAC(sNewFile);
|
||||
if Attrs = faInvalidAttributes then
|
||||
begin
|
||||
sNewFile := TrimPath(sNewFile);
|
||||
hFile := FileCreateUAC(sNewFile, fmShareDenyWrite);
|
||||
if hFile = feInvalidHandle then
|
||||
begin
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue