From 8c1f280c1bc948a20e244b32d824780b08bf85c9 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Mon, 9 Mar 2015 11:49:30 +0100 Subject: Require all fs_handle_t objects to point to a node. --- src/kernel/fs/iso9660.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/kernel/fs') diff --git a/src/kernel/fs/iso9660.c b/src/kernel/fs/iso9660.c index a3db67e..9c9d31a 100644 --- a/src/kernel/fs/iso9660.c +++ b/src/kernel/fs/iso9660.c @@ -223,7 +223,7 @@ bool iso9660_file_open(fs_node_ptr n, int mode) { } size_t iso9660_file_read(fs_handle_t *h, size_t offset, size_t len, char* buf) { - iso9660_node_t *node = (iso9660_node_t*)h->data; + iso9660_node_t *node = (iso9660_node_t*)h->node->data; if (offset >= node->dr.size.lsb) return 0; if (offset + len > node->dr.size.lsb) len = node->dr.size.lsb - offset; @@ -267,7 +267,7 @@ void iso9660_file_close(fs_node_ptr f) { bool iso9660_dir_readdir(fs_handle_t *h, size_t ent_no, dirent_t *d) { // TODO : Very nonefficient !! - iso9660_node_t *node = (iso9660_node_t*)h->data; + iso9660_node_t *node = (iso9660_node_t*)h->node->data; char buffer[2048]; size_t dr_len = 0; -- cgit v1.2.3