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
Modules/FAT - Fixed handling of <FAT32 root directory
[tpg/acess2.git]
/
KernelLand
/
Modules
/
Filesystems
/
FAT
/
dir.c
diff --git
a/KernelLand/Modules/Filesystems/FAT/dir.c
b/KernelLand/Modules/Filesystems/FAT/dir.c
index
c7268d7
..
cb2c6f3
100644
(file)
--- a/
KernelLand/Modules/Filesystems/FAT/dir.c
+++ b/
KernelLand/Modules/Filesystems/FAT/dir.c
@@
-83,6
+83,7
@@
int FAT_int_CreateName(fat_filetable *ft, const Uint16 *LongFileName, char *Dest
{
int len = FAT_int_ConvertUTF16_to_UTF8(NULL, LongFileName);
if( len > FILENAME_MAX ) {
+ LEAVE('i', -1);
return -1;
}
FAT_int_ConvertUTF16_to_UTF8((Uint8*)Dest, LongFileName);
@@
-94,6
+95,7
@@
int FAT_int_CreateName(fat_filetable *ft, const Uint16 *LongFileName, char *Dest
#if USE_LFN
}
#endif
+ LEAVE('i', 0);
return 0;
}
UCC
git Repository :: git.ucc.asn.au