Skip to content

Commit

Permalink
Update file.c
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidXanatos committed Apr 18, 2024
1 parent 9ee5aaf commit e0f966e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Sandboxie/core/dll/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -6882,10 +6882,7 @@ _FX NTSTATUS File_RenameFile(
if (! ReparsedPath)
ReparsedPath = TargetTruePath;

if (!Dll_NoDriverAssist)
status = SbieApi_RenameFile(SourceHandle, ReparsedPath, TargetFileName, ReplaceIfExists);
else
status = File_RenameOpenFile(SourceHandle, ReparsedPath, TargetFileName, ReplaceIfExists);
status = SbieApi_RenameFile(SourceHandle, ReparsedPath, TargetFileName, ReplaceIfExists);

if (ReparsedPath != TargetTruePath)
Dll_Free(ReparsedPath);
Expand Down

0 comments on commit e0f966e

Please sign in to comment.