|
|
| version 1.9, 2005/02/12 12:13:59 | version 1.10, 2005/03/09 19:31:35 |
|---|---|
| Line 191 short file_attr(const OEMCHAR *path) { | Line 191 short file_attr(const OEMCHAR *path) { |
| UINT16 oempath[MAX_PATH]; | UINT16 oempath[MAX_PATH]; |
| MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, path, -1, | MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, path, -1, |
| oempath, NELEMENTS(oempath)); | oempath, NELEMENTS(oempath)); |
| return((short)GetFileAttributes(ucs2)); | |
| #elif defined(UNICODE) && defined(OSLANG_UTF8) | #elif defined(UNICODE) && defined(OSLANG_UTF8) |
| UINT16 oempath[MAX_PATH]; | UINT16 oempath[MAX_PATH]; |
| codecnv_utf8toucs2(oempath, NELEMENTS(oempath), path, (UINT)-1); | codecnv_utf8toucs2(oempath, NELEMENTS(oempath), path, (UINT)-1); |