mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 20:41:45 +00:00
[KERNEL32]
Don't leak a handle when renaming a source file which is a MS mount point or a file without the reparse attribute while we can query its reparse information. CORE-13635 svn path=/trunk/; revision=75478
This commit is contained in:
parent
2dd61864ba
commit
ebe9e0bce0
1 changed files with 5 additions and 0 deletions
|
@ -772,6 +772,11 @@ MoveFileWithProgressW(IN LPCWSTR lpExistingFileName,
|
|||
NtClose(SourceHandle);
|
||||
SourceHandle = INVALID_HANDLE_VALUE;
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Mount point, let's rename it */
|
||||
AttemptReopenWithoutReparse = FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
/* Simply reopen if required */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue