(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
This commit is contained in:
Bart Oldeman 2003-07-15 12:32:35 +00:00
parent 4a067595fc
commit 8a9dcfe8bb

View File

@ -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";
}