fix bug 1789
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1090 6ac86273-5f31-0410-b378-82cca8765d1b
This commit is contained in:
parent
ded1a47b81
commit
5c262419e5
@ -324,6 +324,8 @@ COUNT init_getdriveparm(UBYTE drive, bpb * pbpbarray)
|
||||
type = 4; /* 5 and 4 are both 2.88 MB */
|
||||
|
||||
memcpy(pbpbarray, &floppy_bpbs[type & 7], sizeof(floppy_bpb));
|
||||
((bpb *)pbpbarray)->bpb_hidden = 0; /* very important to init to 0, see bug#1789 */
|
||||
((bpb *)pbpbarray)->bpb_huge = 0;
|
||||
|
||||
if (type == 3)
|
||||
return 7; /* 1.44 MB */
|
||||
|
Loading…
Reference in New Issue
Block a user