Commit 5c98448a authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

ntdll: If read_directory_getattrlist() finds that the file doesn't exist, return…

ntdll: If read_directory_getattrlist() finds that the file doesn't exist, return successful "no file" result to stop search.
parent f6926b35
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment