Author: greatlrd
Date: Sun Jul 16 00:14:44 2006
New Revision: 23068
URL:
http://svn.reactos.org/svn/reactos?rev=23068&view=rev
Log:
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.
Modified:
trunk/reactos/drivers/input/kbdclass/kbdclass.c
trunk/reactos/drivers/input/mouclass/mouclass.c
Modified: trunk/reactos/drivers/input/kbdclass/kbdclass.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/input/kbdclass/kbd…
==============================================================================
--- trunk/reactos/drivers/input/kbdclass/kbdclass.c (original)
+++ trunk/reactos/drivers/input/kbdclass/kbdclass.c Sun Jul 16 00:14:44 2006
@@ -126,7 +126,7 @@
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 @@
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)
Modified: trunk/reactos/drivers/input/mouclass/mouclass.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/input/mouclass/mou…
==============================================================================
--- trunk/reactos/drivers/input/mouclass/mouclass.c (original)
+++ trunk/reactos/drivers/input/mouclass/mouclass.c Sun Jul 16 00:14:44 2006
@@ -123,7 +123,7 @@
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 @@
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)