git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed Double-Relocation in modules.c (edited bin/elf.c to find this)
[tpg/acess2.git]
/
Kernel
/
vfs
/
fs
/
fat.c
diff --git
a/Kernel/vfs/fs/fat.c
b/Kernel/vfs/fs/fat.c
index
984c9b4
..
c840bdd
100644
(file)
--- a/
Kernel/vfs/fs/fat.c
+++ b/
Kernel/vfs/fs/fat.c
@@
-648,14
+648,12
@@
char *FAT_ReadDir(tVFS_Node *dirNode, int dirpos)
offset += (cluster - 2) * disk->bootsect.spc;
\r
}
\r
// Sector in cluster
\r
offset += (cluster - 2) * disk->bootsect.spc;
\r
}
\r
// Sector in cluster
\r
- if(disk->bootsect.spc == 1)
\r
- offset += (dirpos / 16);
\r
- else
\r
+ if(disk->bootsect.spc != 1)
\r
offset += (dirpos / 16) % disk->bootsect.spc;
\r
// Offset in sector
\r
a = dirpos % 16;
\r
\r
offset += (dirpos / 16) % disk->bootsect.spc;
\r
// Offset in sector
\r
a = dirpos % 16;
\r
\r
- LOG("offset=%i, a=%i",
(Uint)
offset, a);
\r
+ LOG("offset=%i, a=%i", offset, a);
\r
\r
// Read Sector
\r
VFS_ReadAt(disk->fileHandle, offset*512, 512, fileinfo); // Read Dir Data
\r
\r
// Read Sector
\r
VFS_ReadAt(disk->fileHandle, offset*512, 512, fileinfo); // Read Dir Data
\r
UCC
git Repository :: git.ucc.asn.au