--- np2/generic/hostdrvs.c 2004/06/20 03:40:31 1.10 +++ np2/generic/hostdrvs.c 2005/02/07 14:46:10 1.12 @@ -13,7 +13,7 @@ static const HDRVDIR hddroot = {" ", 0, 0, 0, 0x10, {0}, {0}}; -static const BYTE dospathchr[] = { +static const UINT8 dospathchr[] = { 0xfa, 0x23, // '&%$#"! /.-,+*)( 0xff, 0x03, // 76543210 ?>=<;:98 0xff, 0xff, // GFEDCBA@ ONMLKJIH @@ -303,11 +303,9 @@ BOOL hostdrvs_newrealpath(HDRVPATH *hdp, char dosname[16]; UINT i; char *p; -#if 0 #if defined(OSLANG_EUC) || defined(OSLANG_UTF8) OEMCHAR oemname[64]; #endif -#endif if ((hostdrvs_getrealdir(path, NELEMENTS(path), fcb, dospath) != SUCCESS) || @@ -335,9 +333,7 @@ BOOL hostdrvs_newrealpath(HDRVPATH *hdp, } } *p = '\0'; -#if 1 // ここで SJIS->OEMコードに未変換! - file_catname(path, dosname, NELEMENTS(path)); -#else + // ここで SJIS->OEMコードに未変換! #if defined(OSLANG_EUC) codecnv_sjis2euc(oemname, NELEMENTS(oemname), dosname, (UINT)-1); file_catname(path, oemname, NELEMENTS(path)); @@ -347,7 +343,6 @@ BOOL hostdrvs_newrealpath(HDRVPATH *hdp, #else file_catname(path, dosname, NELEMENTS(path)); #endif -#endif if (hdp) { ZeroMemory(&hdp->di, sizeof(hdp->di)); CopyMemory(hdp->di.fcbname, fcb, 11);