From 8a9dcfe8bb4662d7978de7d288d796e5296c19fb Mon Sep 17 00:00:00 2001 From: Bart Oldeman Date: Tue, 15 Jul 2003 12:32:35 +0000 Subject: [PATCH] (from Tom) Fix a problem with the 'BootFromHarddiskIfNoKeyHit' option. with some Compaq and Fujitsu/Siemens Highend Equipment git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@640 6ac86273-5f31-0410-b378-82cca8765d1b --- kernel/main.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/kernel/main.c b/kernel/main.c index b1b5db8..e4ece8b 100644 --- a/kernel/main.c +++ b/kernel/main.c @@ -618,7 +618,7 @@ STATIC VOID InitPrinters(VOID) EmulatedDriveStatus(int drive,char statusOnly) { iregs r; - char buffer[13]; + char buffer[0x13]; buffer[0] = 0x13; r.a.b.h = 0x4b; /* bootable CDROM - get status */ @@ -639,21 +639,23 @@ STATIC void CheckContinueBootFromHarddisk(void) iregs r; int key; - __int__(3); /* necessary for some strange reasons ?? (TE) */ - if (InitKernelConfig.BootHarddiskSeconds == 0) return; if (LoL->BootDrive >= 3) { +#if 0 if (!EmulatedDriveStatus(0x80,1)) +#endif { /* already booted from HD */ return; } } else { +#if 0 if (!EmulatedDriveStatus(0x00,1)) +#endif bootedFrom = "Floppy"; }