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:
Magnus Olsen 2005-09-25 22:05:39 +00:00
parent aa2f14ed56
commit 157b81edbd

View file

@ -386,7 +386,7 @@ MoveFileWithProgressW (
{
Result = TRUE;
}
else if (STATUS_NOT_IMPLEMENTED == errCode)
else
{
if (folder==FALSE)
{
@ -697,7 +697,7 @@ FreeMemAndExit:
/* FIXME file rename not yet implemented in all FSDs so it will always
* 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;
@ -742,11 +742,7 @@ FreeMemAndExit:
}
}
#endif
else
{
SetLastErrorByStatus (errCode);
Result = TRUE;
}
return Result;
}