From a693ffdab8ddb668004dae2614b4f2b672cd1eaa Mon Sep 17 00:00:00 2001 From: germeier Date: Thu, 14 Nov 2002 00:00:59 +0000 Subject: fixed problem with CONFIG.DAT --- ChangeLog | 3 +++ libmpio/fat.c | 7 ++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 412bfc6..c29b28f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -9,6 +9,9 @@ * libmpio/directory.c (mpio_charset_get, mpio_charset_set): added functions to allow changing of charset * mpiosh/config.c: read charset from config file + * libmpio/fat.c (mpio_fatentry_read): + fixed problem with CONFIG.DAT that only the first block + was read. (what was I thinking there??) 2002-11-04 Andreas Buesching diff --git a/libmpio/fat.c b/libmpio/fat.c index 8582aa9..f712967 100644 --- a/libmpio/fat.c +++ b/libmpio/fat.c @@ -1,6 +1,6 @@ /* * - * $Id: fat.c,v 1.19 2002/10/27 02:45:28 germeier Exp $ + * $Id: fat.c,v 1.20 2002/11/14 00:00:59 germeier Exp $ * * Library for USB MPIO-* * @@ -509,8 +509,9 @@ mpio_fatentry_read(mpio_t *m, mpio_mem_t mem, mpio_fatentry_t *f ) (sm->fat[e+10] == 0xff)) return 0xffffffff; /* this is a special system file! */ - if (sm->fat[e+6] == FTYPE_CONF) - return 0xffffffff; +/* this is not correct!! */ +/* if (sm->fat[e+6] == FTYPE_CONF) */ +/* return 0xffffffff; */ /* this is a special system file! */ if((sm->fat[e+6] != FTYPE_MUSIC) && (sm->fat[e+0x0b] == 0xff) && -- cgit v1.2.3