Update file.c

This commit is contained in:
DavidXanatos 2024-04-18 09:32:45 +02:00
parent 9ee5aaf285
commit e0f966e865
1 changed files with 1 additions and 4 deletions

View File

@ -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);