From 8e38aa25a1109da5e1402c4f8740dd989f02bf03 Mon Sep 17 00:00:00 2001 From: Magnus Olsen Date: Sat, 17 Sep 2005 21:02:38 +0000 Subject: [PATCH] Fix some part of MoveFileExW Bug, Can not move folder, but it still can not move folder. some bit more work. svn path=/trunk/; revision=17901 --- reactos/lib/kernel32/file/move.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/reactos/lib/kernel32/file/move.c b/reactos/lib/kernel32/file/move.c index c05c74c6664..643f61272c6 100644 --- a/reactos/lib/kernel32/file/move.c +++ b/reactos/lib/kernel32/file/move.c @@ -325,7 +325,7 @@ MoveFileWithProgressW ( FILE_SHARE_WRITE|FILE_SHARE_READ, NULL, OPEN_EXISTING, - FILE_ATTRIBUTE_NORMAL, + FILE_FLAG_BACKUP_SEMANTICS, NULL); if (hFile == INVALID_HANDLE_VALUE) @@ -366,6 +366,13 @@ MoveFileWithProgressW ( sizeof(FILE_RENAME_INFORMATION) + DstPathU.Length, FileRenameInformation); CloseHandle(hFile); + + /* + * FIXME: + * Fail now move the folder + * Before we fail at CreateFileW + */ + if (NT_SUCCESS(errCode)) { Result = TRUE;