--- xmil/win9x/dosio.cpp 2004/08/01 05:31:31 1.1 +++ xmil/win9x/dosio.cpp 2004/08/09 02:47:02 1.3 @@ -186,8 +186,8 @@ void __stdcall file_cutname(OEMCHAR *pat OEMCHAR * __stdcall file_getext(const OEMCHAR *path) { -const char *p; -const char *q; +const OEMCHAR *p; +const OEMCHAR *q; p = file_getname(path); q = NULL; @@ -225,7 +225,7 @@ void __stdcall file_cutseparator(OEMCHAR int pos; - pos = strlen(path) - 1; + pos = OEMSTRLEN(path) - 1; if ((pos > 0) && // 2文字以上でー (path[pos] == '\\') && // ケツが \ でー (!milstr_kanji2nd(path, pos)) && // 漢字の2バイト目ぢゃなくてー @@ -239,7 +239,7 @@ void __stdcall file_setseparator(OEMCHAR int pos; - pos = strlen(path) - 1; + pos = OEMSTRLEN(path) - 1; if ((pos < 0) || ((pos == 1) && (path[1] == ':')) || ((path[pos] == '\\') && (!milstr_kanji2nd(path, pos))) ||