[PATCH v1 1/2] kernel32: Fix MoveFileWithProgressW from closing same handle twice

Jon Doron arilou at gmail.com
Fri Jan 11 02:24:44 CST 2019


Signed-off-by: Jon Doron <arilou at gmail.com>
---
 dlls/kernel32/path.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/kernel32/path.c b/dlls/kernel32/path.c
index 41f0d34aa4..554f96a2b1 100644
--- a/dlls/kernel32/path.c
+++ b/dlls/kernel32/path.c
@@ -1392,6 +1392,7 @@ BOOL WINAPI MoveFileWithProgressW( LPCWSTR source, LPCWSTR dest,
         }
 
         NtClose( dest_handle );
+        dest_handle = NULL;
     }
     else if (status != STATUS_OBJECT_NAME_NOT_FOUND)
     {
-- 
2.19.2




More information about the wine-devel mailing list