From 5c262419e5cb0b548cca7e90eeaa51648c20554b Mon Sep 17 00:00:00 2001 From: Kenneth J Davis Date: Sun, 9 Jan 2005 11:30:44 +0000 Subject: [PATCH] fix bug 1789 git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1090 6ac86273-5f31-0410-b378-82cca8765d1b --- kernel/initdisk.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/initdisk.c b/kernel/initdisk.c index d175f6c..3cc8010 100644 --- a/kernel/initdisk.c +++ b/kernel/initdisk.c @@ -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 */