From 80eabf00406a7d93e9589adf8c82183ef2b71d2f Mon Sep 17 00:00:00 2001 From: Hartmut Birr Date: Tue, 5 Apr 2005 17:07:56 +0000 Subject: [PATCH] Initialize the maximum length of the device description to allocate more than map register. svn path=/trunk/; revision=14505 --- reactos/drivers/storage/floppy/floppy.c | 1 + 1 file changed, 1 insertion(+) diff --git a/reactos/drivers/storage/floppy/floppy.c b/reactos/drivers/storage/floppy/floppy.c index 344793009e6..1dc67436c78 100644 --- a/reactos/drivers/storage/floppy/floppy.c +++ b/reactos/drivers/storage/floppy/floppy.c @@ -861,6 +861,7 @@ static BOOLEAN NTAPI AddControllers(PDRIVER_OBJECT DriverObject) DeviceDescription.DmaChannel = gControllerInfo[i].Dma; DeviceDescription.InterfaceType = gControllerInfo[i].InterfaceType; DeviceDescription.BusNumber = gControllerInfo[i].BusNumber; + DeviceDescription.MaximumLength = 2*18*512; /* based on a 1.44MB floppy */ /* DMA 0,1,2,3 are 8-bit; 4,5,6,7 are 16-bit (4 is chain i think) */ DeviceDescription.DmaWidth = gControllerInfo[i].Dma > 3 ? Width16Bits: Width8Bits;