ntdll: If read_directory_getattrlist() finds that the file doesn't exist, return successful "no file" result to stop search.

This commit is contained in:
Ken Thomases 2015-05-20 14:59:11 -05:00 committed by Alexandre Julliard
parent f6926b3515
commit 5c98448aa3
1 changed files with 5 additions and 0 deletions

View File

@ -2185,6 +2185,11 @@ static int read_directory_getattrlist( int fd, IO_STATUS_BLOCK *io, void *buffer
}
else io->u.Status = STATUS_NO_MORE_FILES;
}
else if ((errno == ENOENT || errno == ENOTDIR) && !get_dir_case_sensitivity("."))
{
io->u.Status = STATUS_NO_MORE_FILES;
ret = 0;
}
}
else ret = -1;