change from copyfileW to copyfileExW in MoveFileWithProgressW and add a
error check for copyfileExW that was forgotten.
Modified: trunk/reactos/lib/kernel32/file/move.c
_____
Modified: trunk/reactos/lib/kernel32/file/move.c
--- trunk/reactos/lib/kernel32/file/move.c 2005-09-26 20:29:08 UTC
(rev 18107)
+++ trunk/reactos/lib/kernel32/file/move.c 2005-09-26 20:44:43 UTC
(rev 18108)
@@ -633,9 +633,20 @@
size = wcslen(lpNewFileName);
wcscpy((WCHAR *)&lpNewFileName2[size], (WCHAR
*)&lpDeleteFile[size2]);
- /* copy file */
- Result = CopyFileW(lpDeleteFile,lpNewFileName2, FALSE);
+ /* copy file */
+ Result = CopyFileExW (lpDeleteFile,
+ lpNewFileName2,
+ lpProgressRoutine,
+ lpData,
+ NULL,
+ 0);
+ if (Result == FALSE)
+ {
+ DPRINT("MoveFileWithProgressW : Fails\n");
+ break;
+ }
+
/* delete file */
DPRINT("MoveFileWithProgressW : Delete file : %S :
%S\n",lpDeleteFile, lpNewFileName2);
Show replies by date