change from copyfileW to copyfileExW in MoveFileWithProgressW and add a error check for copyfileExW that was forgotten.

svn path=/trunk/; revision=18108
This commit is contained in:
Magnus Olsen 2005-09-26 20:44:43 +00:00
parent 4d68062bfb
commit 532121508b

View file

@ -633,8 +633,19 @@ MoveFileWithProgressW (
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);