mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +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);
|
||||
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);
|
||||
|
|
Loading…
Reference in a new issue