Need to check for navc!=NULL, not *nc!=0xffff in DosGetFree.
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1006 6ac86273-5f31-0410-b378-82cca8765d1b
This commit is contained in:
parent
a6a6cfec9d
commit
cd85d78739
@ -864,9 +864,9 @@ BOOL DosGetFree(UBYTE drive, UWORD * spc, UWORD * navc,
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
/* a passed nc of 0xffff means: skip free; see FatGetDrvData
|
/* a passed navc of NULL means: skip free; see FatGetDrvData
|
||||||
fcbfns.c */
|
fcbfns.c */
|
||||||
if (*nc != 0xffff)
|
if (navc != NULL)
|
||||||
*navc = (COUNT) dos_free(dpbp);
|
*navc = (COUNT) dos_free(dpbp);
|
||||||
*nc = dpbp->dpb_size - 1;
|
*nc = dpbp->dpb_size - 1;
|
||||||
if (*spc > 64)
|
if (*spc > 64)
|
||||||
|
Loading…
Reference in New Issue
Block a user