X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;ds=inline;f=KernelLand%2FModules%2FFilesystems%2FFAT%2Fdir.c;h=cb2c6f33befedcb25d92de9c9b73081d8bab82ef;hb=4d184c30a3385600c0d87a2f93b4259c8c973e73;hp=c7268d735fb3aacd4dbc1c8830893d1d7ae8caa0;hpb=d0b4559f2936f6d9f06be0f7c3c51527a480ec0d;p=tpg%2Facess2.git diff --git a/KernelLand/Modules/Filesystems/FAT/dir.c b/KernelLand/Modules/Filesystems/FAT/dir.c index c7268d73..cb2c6f33 100644 --- 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; }