--- np2/generic/hostdrv.c 2004/01/12 08:01:00 1.6 +++ np2/generic/hostdrv.c 2004/01/15 06:20:42 1.8 @@ -1,3 +1,6 @@ +#include "compiler.h" + +#if defined(SUPPORT_HOSTDRV) /* ゲストOS(DOS)からホストOS(Win)にアクセスするの〜 @@ -6,7 +9,6 @@ 更に、手抜き版だし(マテ */ -#include "compiler.h" #include "dosio.h" #include "cpucore.h" #include "pccore.h" @@ -476,7 +478,8 @@ static void change_currdir(INTRST intrst succeed(intrst); return; } - if ((is_wildcards(intrst->fcbname_ptr) != FALSE) || + if ((strlen(intrst->filename_ptr) >= (67 - ROOTPATH_SIZE)) || + (is_wildcards(intrst->fcbname_ptr) != FALSE) || (hostdrvs_getrealpath(&hdp, ptr) != SUCCESS) || (hdp.di.fcbname[0] == ' ') || (!(hdp.di.attr & 0x10))) { fail(intrst, ERR_PATHNOTFOUND); @@ -1117,3 +1120,5 @@ void hostdrv_intr(void) { store_intr_regs(&intrst); } +#endif +