mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
don't expect FS drivers to return STATUS_NOT_IMPLEMENTED if they don't know how to do the move (STATUS_NOT_SUPPORTED is also a perfect valid error code), this change did hpoussin suggest
svn path=/trunk/; revision=18075
This commit is contained in:
parent
aa2f14ed56
commit
157b81edbd
1 changed files with 3 additions and 7 deletions
|
@ -386,7 +386,7 @@ MoveFileWithProgressW (
|
||||||
{
|
{
|
||||||
Result = TRUE;
|
Result = TRUE;
|
||||||
}
|
}
|
||||||
else if (STATUS_NOT_IMPLEMENTED == errCode)
|
else
|
||||||
{
|
{
|
||||||
if (folder==FALSE)
|
if (folder==FALSE)
|
||||||
{
|
{
|
||||||
|
@ -697,7 +697,7 @@ FreeMemAndExit:
|
||||||
/* FIXME file rename not yet implemented in all FSDs so it will always
|
/* FIXME file rename not yet implemented in all FSDs so it will always
|
||||||
* fail, even when the move is to the same device
|
* fail, even when the move is to the same device
|
||||||
*/
|
*/
|
||||||
else if (STATUS_NOT_IMPLEMENTED == errCode)
|
//else if (STATUS_NOT_IMPLEMENTED == errCode)
|
||||||
{
|
{
|
||||||
|
|
||||||
UNICODE_STRING SrcPathU;
|
UNICODE_STRING SrcPathU;
|
||||||
|
@ -742,11 +742,7 @@ FreeMemAndExit:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
else
|
|
||||||
{
|
|
||||||
SetLastErrorByStatus (errCode);
|
|
||||||
Result = TRUE;
|
|
||||||
}
|
|
||||||
return Result;
|
return Result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue