mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
part1 of move bug from a volume to another have been solve, the part two are in Reactos MoveFileEx
svn path=/trunk/; revision=16591
This commit is contained in:
parent
eb4fb35571
commit
6d92ae56c6
1 changed files with 3 additions and 3 deletions
|
@ -170,7 +170,7 @@ INT cmd_move (LPTSTR cmd, LPTSTR param)
|
||||||
#endif
|
#endif
|
||||||
if (!(dwFlags & MOVE_NOTHING))
|
if (!(dwFlags & MOVE_NOTHING))
|
||||||
continue;
|
continue;
|
||||||
MoveFile (szSrcPath, szDestPath);
|
MoveFileEx (szSrcPath, szDestPath, MOVEFILE_REPLACE_EXISTING | MOVEFILE_WRITE_THROUGH | MOVEFILE_COPY_ALLOWED);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -208,7 +208,7 @@ INT cmd_move (LPTSTR cmd, LPTSTR param)
|
||||||
/*delete the file that might be there first*/
|
/*delete the file that might be there first*/
|
||||||
DeleteFile(szFullDestPath);
|
DeleteFile(szFullDestPath);
|
||||||
/*move the file*/
|
/*move the file*/
|
||||||
if (MoveFile (szSrcPath, szFullDestPath))
|
if (MoveFileEx (szSrcPath, szFullDestPath, MOVEFILE_REPLACE_EXISTING | MOVEFILE_WRITE_THROUGH | MOVEFILE_COPY_ALLOWED))
|
||||||
LoadString(CMD_ModuleHandle, STRING_MOVE_ERROR1, szMsg, RC_STRING_MAX_SIZE);
|
LoadString(CMD_ModuleHandle, STRING_MOVE_ERROR1, szMsg, RC_STRING_MAX_SIZE);
|
||||||
else
|
else
|
||||||
LoadString(CMD_ModuleHandle, STRING_MOVE_ERROR2, szMsg, RC_STRING_MAX_SIZE);
|
LoadString(CMD_ModuleHandle, STRING_MOVE_ERROR2, szMsg, RC_STRING_MAX_SIZE);
|
||||||
|
@ -246,7 +246,7 @@ INT cmd_move (LPTSTR cmd, LPTSTR param)
|
||||||
if it was already there*/
|
if it was already there*/
|
||||||
DeleteFile(szDestPath);
|
DeleteFile(szDestPath);
|
||||||
/*do the moving*/
|
/*do the moving*/
|
||||||
if (MoveFile (szSrcPath, szDestPath))
|
if (MoveFileEx (szSrcPath, szDestPath, MOVEFILE_REPLACE_EXISTING | MOVEFILE_WRITE_THROUGH | MOVEFILE_COPY_ALLOWED))
|
||||||
LoadString(CMD_ModuleHandle, STRING_MOVE_ERROR1, szMsg, RC_STRING_MAX_SIZE);
|
LoadString(CMD_ModuleHandle, STRING_MOVE_ERROR1, szMsg, RC_STRING_MAX_SIZE);
|
||||||
else
|
else
|
||||||
LoadString(CMD_ModuleHandle, STRING_MOVE_ERROR2, szMsg, RC_STRING_MAX_SIZE);
|
LoadString(CMD_ModuleHandle, STRING_MOVE_ERROR2, szMsg, RC_STRING_MAX_SIZE);
|
||||||
|
|
Loading…
Reference in a new issue