From 64e3f510fe4b8560e903a7f7006542d1208e7121 Mon Sep 17 00:00:00 2001 From: Magnus Olsen Date: Sat, 15 Jul 2006 20:14:44 +0000 Subject: [PATCH] Tempary fixing kbdclass and mouse class u can not call on IoDeleteDevice before disabler the keyboard or mouse driver other wise it will bsod at shoutdown of ReactOS, create the frist boot problem. that we have seen on BootCD; Hpoussin I have comment out iodevice for now, please look at it when u got time. svn path=/trunk/; revision=23068 --- reactos/drivers/input/kbdclass/kbdclass.c | 5 +++-- reactos/drivers/input/mouclass/mouclass.c | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/reactos/drivers/input/kbdclass/kbdclass.c b/reactos/drivers/input/kbdclass/kbdclass.c index c52509527dc..60cc85a32e7 100644 --- a/reactos/drivers/input/kbdclass/kbdclass.c +++ b/reactos/drivers/input/kbdclass/kbdclass.c @@ -126,7 +126,7 @@ ClassDeviceControl( PLIST_ENTRY Head = &((PCLASS_DEVICE_EXTENSION)DeviceObject->DeviceExtension)->ListHead; if (Head->Flink != Head) { - /* We have at least one device */ + /* We have at least one keyboard */ PPORT_DEVICE_EXTENSION DevExt = CONTAINING_RECORD(Head->Flink, PORT_DEVICE_EXTENSION, ListEntry); IoGetCurrentIrpStackLocation(Irp)->MajorFunction = IRP_MJ_INTERNAL_DEVICE_CONTROL; IoSkipCurrentIrpStackLocation(Irp); @@ -711,7 +711,8 @@ cleanup: PCLASS_DEVICE_EXTENSION ClassDeviceExtension; ClassDeviceExtension = (PCLASS_DEVICE_EXTENSION)DeviceExtension->ClassDO->DeviceExtension; ExFreePool(ClassDeviceExtension->PortData); - IoDeleteDevice(DeviceExtension->ClassDO); + /* FIXME BSOD for second boot when u press on finsih buttom or wait timeout */ + //IoDeleteDevice(DeviceExtension->ClassDO); } } if (Fdo) diff --git a/reactos/drivers/input/mouclass/mouclass.c b/reactos/drivers/input/mouclass/mouclass.c index 338ba7b826f..8f400764f20 100644 --- a/reactos/drivers/input/mouclass/mouclass.c +++ b/reactos/drivers/input/mouclass/mouclass.c @@ -123,7 +123,7 @@ ClassDeviceControl( PLIST_ENTRY Head = &((PCLASS_DEVICE_EXTENSION)DeviceObject->DeviceExtension)->ListHead; if (Head->Flink != Head) { - /* We have at least one device */ + /* We have at least one mouse */ PPORT_DEVICE_EXTENSION DevExt = CONTAINING_RECORD(Head->Flink, PORT_DEVICE_EXTENSION, ListEntry); IoGetCurrentIrpStackLocation(Irp)->MajorFunction = IRP_MJ_INTERNAL_DEVICE_CONTROL; IoSkipCurrentIrpStackLocation(Irp); @@ -687,7 +687,8 @@ cleanup: PCLASS_DEVICE_EXTENSION ClassDeviceExtension; ClassDeviceExtension = (PCLASS_DEVICE_EXTENSION)DeviceExtension->ClassDO->DeviceExtension; ExFreePool(ClassDeviceExtension->PortData); - IoDeleteDevice(DeviceExtension->ClassDO); + /* FIXME BSOD for second boot when u press on finsih buttom or wait timeout */ + // IoDeleteDevice(DeviceExtension->ClassDO); } } if (Fdo)