[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:
Pierre Schweitzer 2017-08-04 12:18:52 +00:00
parent 2dd61864ba
commit ebe9e0bce0

View file

@ -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 */