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:
Bart Oldeman 2004-07-25 00:08:34 +00:00
parent a6a6cfec9d
commit cd85d78739

View File

@ -864,9 +864,9 @@ BOOL DosGetFree(UBYTE drive, UWORD * spc, UWORD * navc,
return TRUE;
}
#endif
/* a passed nc of 0xffff means: skip free; see FatGetDrvData
/* a passed navc of NULL means: skip free; see FatGetDrvData
fcbfns.c */
if (*nc != 0xffff)
if (navc != NULL)
*navc = (COUNT) dos_free(dpbp);
*nc = dpbp->dpb_size - 1;
if (*spc > 64)