diff --git a/kernel/fcbfns.c b/kernel/fcbfns.c index a74795e..ca1de40 100644 --- a/kernel/fcbfns.c +++ b/kernel/fcbfns.c @@ -85,7 +85,7 @@ BYTE FAR *FatGetDrvData(UBYTE drive, UWORD * spc, UWORD * bps, UWORD * nc) #define PARSE_RET_BADDRIVE 0xff #ifndef IPL -UWORD FcbParseFname(int *wTestMode, const BYTE FAR * lpFileName, fcb FAR * lpFcb) +UWORD FcbParseFname(UBYTE *wTestMode, const BYTE FAR * lpFileName, fcb FAR * lpFcb) { WORD wRetCodeName = FALSE, wRetCodeExt = FALSE; diff --git a/kernel/inthndlr.c b/kernel/inthndlr.c index 6cf6ab7..85eb316 100644 --- a/kernel/inthndlr.c +++ b/kernel/inthndlr.c @@ -665,9 +665,7 @@ dispatch: /* Parse File Name */ case 0x29: - rc = 0; - lr.SI = FcbParseFname(&rc, MK_FP(lr.DS, lr.SI), FP_ES_DI); - lr.AL = rc; + lr.SI = FcbParseFname(&lr.AL, MK_FP(lr.DS, lr.SI), FP_ES_DI); break; /* Get Date */ diff --git a/kernel/proto.h b/kernel/proto.h index 524d5a8..8e1110f 100644 --- a/kernel/proto.h +++ b/kernel/proto.h @@ -206,7 +206,7 @@ VOID DosCharOutput(COUNT c); VOID DosDisplayOutput(COUNT c); BYTE FAR *FatGetDrvData(UBYTE drive, UWORD * spc, UWORD * bps, UWORD * nc); -UWORD FcbParseFname(int *wTestMode, const BYTE FAR *lpFileName, fcb FAR * lpFcb); +UWORD FcbParseFname(UBYTE *wTestMode, const BYTE FAR *lpFileName, fcb FAR * lpFcb); const BYTE FAR *ParseSkipWh(const BYTE FAR * lpFileName); BOOL TestCmnSeps(BYTE FAR * lpFileName); BOOL TestFieldSeps(BYTE FAR * lpFileName);