Author: pschweitzer Date: Fri Aug 4 12:18:52 2017 New Revision: 75478
URL: http://svn.reactos.org/svn/reactos?rev=75478&view=rev Log: [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
Modified: trunk/reactos/dll/win32/kernel32/client/file/move.c
Modified: trunk/reactos/dll/win32/kernel32/client/file/move.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/client/f... ============================================================================== --- trunk/reactos/dll/win32/kernel32/client/file/move.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/kernel32/client/file/move.c [iso-8859-1] Fri Aug 4 12:18:52 2017 @@ -771,6 +771,11 @@ { NtClose(SourceHandle); SourceHandle = INVALID_HANDLE_VALUE; + } + else + { + /* Mount point, let's rename it */ + AttemptReopenWithoutReparse = FALSE; } }