Check the BPB instead of the DPB for FAT32 after a BUILDBPB device

call, as the DPB may still be uninitialized at this point.


git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1490 6ac86273-5f31-0410-b378-82cca8765d1b
This commit is contained in:
Bart Oldeman 2009-07-18 14:05:26 +00:00
parent 2e9792fae5
commit 8b07bb8c23

View File

@ -1701,7 +1701,8 @@ COUNT media_check(REG struct dpb FAR * dpbp)
#ifdef WITHFAT32
/* extend dpb only for internal or FAT32 devices */
bpb_to_dpb(MediaReqHdr.r_bpptr, dpbp,
ISFAT32(dpbp) || FP_SEG(dpbp) == FP_SEG(&os_major));
MediaReqHdr.r_bpptr->bpb_nfsect == 0 ||
FP_SEG(dpbp) == FP_SEG(&os_major));
#else
bpb_to_dpb(MediaReqHdr.r_bpptr, dpbp);
#endif