X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FModules%2FFilesystems%2FFAT%2Fdir.c;fp=KernelLand%2FModules%2FFilesystems%2FFAT%2Fdir.c;h=cb2c6f33befedcb25d92de9c9b73081d8bab82ef;hb=3c083419789d22300a221254647421f1e167adf2;hp=c7268d735fb3aacd4dbc1c8830893d1d7ae8caa0;hpb=4f1da7f5ad53f573458e259b4c733765632eae10;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; }