Diff for /np2/wince/dosio.cpp between versions 1.9 and 1.11

version 1.9, 2005/02/12 12:13:59 version 1.11, 2005/03/24 04:40:33
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);
Line 227  void file_setcd(const OEMCHAR *exepath)  Line 226  void file_setcd(const OEMCHAR *exepath) 
         *curfilep = '\0';          *curfilep = '\0';
 }  }
   
 char *file_getcd(const OEMCHAR *path) {  OEMCHAR *file_getcd(const OEMCHAR *path) {
   
         file_cpyname(curfilep, path, NELEMENTS(curpath) - (curfilep - curpath));          file_cpyname(curfilep, path, NELEMENTS(curpath) - (curfilep - curpath));
         return(curpath);          return(curpath);
Line 415  void file_cutseparator(OEMCHAR *path) { Line 414  void file_cutseparator(OEMCHAR *path) {
   
         int             pos;          int             pos;
   
         pos = strlen(path) - 1;          pos = OEMSTRLEN(path) - 1;
         if ((pos > 0) &&                                                        // 2文字以上でー          if ((pos > 0) &&                                                        // 2文字以上でー
                 (path[pos] == '\\') &&                                  // ケツが \ でー                  (path[pos] == '\\') &&                                  // ケツが \ でー
                 (!milstr_kanji2nd(path, pos)) &&                // 漢字の2バイト目ぢゃなくてー                  (!milstr_kanji2nd(path, pos)) &&                // 漢字の2バイト目ぢゃなくてー
Line 429  void file_setseparator(OEMCHAR *path, in Line 428  void file_setseparator(OEMCHAR *path, in
   
         int             pos;          int             pos;
   
         pos = strlen(path) - 1;          pos = OEMSTRLEN(path) - 1;
         if ((pos < 0) ||          if ((pos < 0) ||
                 ((pos == 1) && (path[1] == ':')) ||                  ((pos == 1) && (path[1] == ':')) ||
                 ((path[pos] == '\\') && (!milstr_kanji2nd(path, pos))) ||                  ((path[pos] == '\\') && (!milstr_kanji2nd(path, pos))) ||

Removed from v.1.9  
changed lines
  Added in v.1.11


RetroPC.NET-CVS <cvs@retropc.net>