From fed4d61e90123c877289c0ec5f10bd97b8e64c00 Mon Sep 17 00:00:00 2001 From: Bart Oldeman Date: Tue, 13 Apr 2004 17:21:30 +0000 Subject: [PATCH] Fix new LBA problem. git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@877 6ac86273-5f31-0410-b378-82cca8765d1b --- kernel/initdisk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/initdisk.c b/kernel/initdisk.c index e9c7942..fabef30 100644 --- a/kernel/initdisk.c +++ b/kernel/initdisk.c @@ -583,7 +583,7 @@ void DosDefinePartition(struct DriveParamS *driveParam, pddt->ddt_next = MK_FP(0, 0xffff); pddt->ddt_driveno = driveParam->driveno; pddt->ddt_logdriveno = nUnits; - pddt->ddt_descflags |= driveParam->descflags; + pddt->ddt_descflags = driveParam->descflags; /* Turn of LBA if not forced and the partition is within 1023 cyls and of the right type */ /* the FileSystem type was internally converted to LBA_xxxx if a non-LBA partition above cylinder 1023 was found */ @@ -614,7 +614,7 @@ void DosDefinePartition(struct DriveParamS *driveParam, pddt->ddt_serialno = 0x12345678l; /* drive inaccessible until bldbpb successful */ - pddt->ddt_descflags = init_readdasd(pddt->ddt_driveno) | DF_NOACCESS; + pddt->ddt_descflags |= init_readdasd(pddt->ddt_driveno) | DF_NOACCESS; pddt->ddt_type = 5; memcpy(&pddt->ddt_bpb, &pddt->ddt_defbpb, sizeof(bpb));