mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
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:
parent
4d68062bfb
commit
532121508b
1 changed files with 13 additions and 2 deletions
|
@ -633,8 +633,19 @@ MoveFileWithProgressW (
|
||||||
size = wcslen(lpNewFileName);
|
size = wcslen(lpNewFileName);
|
||||||
wcscpy((WCHAR *)&lpNewFileName2[size], (WCHAR *)&lpDeleteFile[size2]);
|
wcscpy((WCHAR *)&lpNewFileName2[size], (WCHAR *)&lpDeleteFile[size2]);
|
||||||
|
|
||||||
/* copy file */
|
/* copy file */
|
||||||
Result = CopyFileW(lpDeleteFile,lpNewFileName2, FALSE);
|
Result = CopyFileExW (lpDeleteFile,
|
||||||
|
lpNewFileName2,
|
||||||
|
lpProgressRoutine,
|
||||||
|
lpData,
|
||||||
|
NULL,
|
||||||
|
0);
|
||||||
|
|
||||||
|
if (Result == FALSE)
|
||||||
|
{
|
||||||
|
DPRINT("MoveFileWithProgressW : Fails\n");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
/* delete file */
|
/* delete file */
|
||||||
DPRINT("MoveFileWithProgressW : Delete file : %S : %S\n",lpDeleteFile, lpNewFileName2);
|
DPRINT("MoveFileWithProgressW : Delete file : %S : %S\n",lpDeleteFile, lpNewFileName2);
|
||||||
|
|
Loading…
Reference in a new issue