|
|
| version 1.15, 2005/03/18 09:23:10 | version 1.17, 2011/01/15 18:04:43 |
|---|---|
| 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); |
| } | } |
| Line 120 static BOOL hddseadir(void *vpItem, void | Line 121 static BOOL hddseadir(void *vpItem, void |
| return(FALSE); | return(FALSE); |
| } | } |
| LISTARRAY hostdrvs_getpathlist(const OEMCHAR *realpath) { | LISTARRAY hostdrvs_getpathlist(const OEMCHAR *path) { |
| FLISTH flh; | FLISTH flh; |
| FLINFO fli; | FLINFO fli; |
| Line 128 LISTARRAY hostdrvs_getpathlist(const OEM | Line 129 LISTARRAY hostdrvs_getpathlist(const OEM |
| char fcbname[11]; | char fcbname[11]; |
| HDRVLST hdd; | HDRVLST hdd; |
| flh = file_list1st(realpath, &fli); | flh = file_list1st(path, &fli); |
| if (flh == FLISTH_INVALID) { | if (flh == FLISTH_INVALID) { |
| goto hdgpl_err1; | goto hdgpl_err1; |
| } | } |