|
|
| version 1.15, 2005/03/18 09:23:10 | version 1.16, 2005/05/20 14:32:01 |
|---|---|
| Line 75 static void rcnvfcb(char *dst, UINT dlen | Line 75 static void rcnvfcb(char *dst, UINT dlen |
| } | } |
| } | } |
| static BRESULT realname2fcb(char *fcbname, FLINFO *fli) { | static BRESULT realname2fcb(char *fcbname, const FLINFO *fli) { |
| OEMCHAR *ext; | OEMCHAR *ext; |
| #if defined(OSLANG_EUC) || defined(OSLANG_UTF8) || defined(OSLANG_UCS2) | #if defined(OSLANG_EUC) || defined(OSLANG_UTF8) || defined(OSLANG_UCS2) |
| char sjis[MAX_PATH]; | char sjis[MAX_PATH]; |
| #endif | #endif |
| OEMCHAR filename[MAX_PATH]; | |
| FillMemory(fcbname, 11, ' '); | FillMemory(fcbname, 11, ' '); |
| Line 92 static BRESULT realname2fcb(char *fcbnam | Line 93 static BRESULT realname2fcb(char *fcbnam |
| rcnvfcb(fcbname+8, 3, ext); | rcnvfcb(fcbname+8, 3, ext); |
| #endif | #endif |
| file_cutext(fli->path); | file_cpyname(filename, fli->path, NELEMENTS(filename)); |
| file_cutext(filename); | |
| #if defined(OSLANG_EUC) || defined(OSLANG_UTF8) || defined(OSLANG_UCS2) | #if defined(OSLANG_EUC) || defined(OSLANG_UTF8) || defined(OSLANG_UCS2) |
| oemtext_oemtosjis(sjis, sizeof(sjis), fli->path, (UINT)-1); | oemtext_oemtosjis(sjis, sizeof(sjis), filename, (UINT)-1); |
| rcnvfcb(fcbname+0, 8, sjis); | rcnvfcb(fcbname+0, 8, sjis); |
| #else | #else |
| rcnvfcb(fcbname+0, 8, fli->path); | rcnvfcb(fcbname+0, 8, filename); |
| #endif | #endif |
| return(SUCCESS); | return(SUCCESS); |
| } | } |