mirror of
https://github.com/FDOS/kernel.git
synced 2025-04-08 17:15:17 +02:00
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:
parent
2e9792fae5
commit
8b07bb8c23
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user