* AcessMicro VFS
* - File IO Passthru's
*/
-#include <common.h>
+#include <acess.h>
#include "vfs.h"
#include "vfs_int.h"
void Inode_ClearCache(int Handle)
{
tInodeCache *cache;
- tInodeCache *prev = (tInodeCache*) &gVFS_InodeCache;
+ tInodeCache *prev = NULL;
tCachedInode *ent, *next;
// Find the cache
}
// Free Cache
- prev->Next = cache->Next;
+ if(prev == NULL)
+ gVFS_InodeCache = cache->Next;
+ else
+ prev->Next = cache->Next;
free(cache);
}