--- trunk/reactos/drivers/input/sermouse/detect.c 2005-12-18 22:51:10 UTC (rev 20260)
+++ trunk/reactos/drivers/input/sermouse/detect.c 2005-12-18 23:00:00 UTC (rev 20261)
@@ -186,7 +186,7 @@
&Fcr, sizeof(Fcr), NULL, NULL);
if (!NT_SUCCESS(Status)) goto ByeBye;
/* Set serial port speed */
- BaudRate = SERIAL_BAUD_1200;
+ BaudRate = 1200;
Status = SermouseDeviceIoControl(LowerDevice, IOCTL_SERIAL_SET_BAUD_RATE,
&BaudRate, sizeof(BaudRate), NULL, NULL);
if (!NT_SUCCESS(Status)) goto ByeBye;
--- trunk/reactos/drivers/input/sermouse/fdo.c 2005-12-18 22:51:10 UTC (rev 20260)
+++ trunk/reactos/drivers/input/sermouse/fdo.c 2005-12-18 23:00:00 UTC (rev 20261)
@@ -115,8 +115,6 @@
Fdo->Flags |= DO_BUFFERED_IO;
Fdo->Flags &= ~DO_DEVICE_INITIALIZING;
- /* FIXME: create registry entry in HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP */
-
ExFreePool(DeviceNameU.Buffer);
return STATUS_SUCCESS;
@@ -124,6 +122,8 @@
cleanupFDO:
if (DeviceExtension)
{
+ if (DeviceExtension->LowerDevice)
+ IoDetachDevice(DeviceExtension->LowerDevice);
ExFreePool(DeviceExtension->MouseInputData[0]);
ExFreePool(DeviceExtension->MouseInputData[1]);
}
@@ -177,7 +177,7 @@
/* Override the number of buttons */
DeviceExtension->AttributesInformation.NumberOfButtons = DeviceExtension->DriverExtension->NumberOfButtons;
- DeviceExtension->AttributesInformation.SampleRate = 1200 / 8;
+ DeviceExtension->AttributesInformation.SampleRate = DeviceExtension->DriverExtension->SampleRate / 8;
DeviceExtension->AttributesInformation.InputDataQueueLength = DeviceExtension->DriverExtension->MouseDataQueueSize;
DeviceExtension->MouseType = MouseType;
DeviceExtension->PnpState = dsStarted;
--- trunk/reactos/drivers/input/sermouse/readmouse.c 2005-12-18 22:51:10 UTC (rev 20260)
+++ trunk/reactos/drivers/input/sermouse/readmouse.c 2005-12-18 23:00:00 UTC (rev 20261)
@@ -172,7 +172,7 @@
for (i = 0; i < ioStatus.Information; i++)
{
ReceivedByte = Buffer[i];
- DPRINT1("ReceivedByte 0x%02x\n", ReceivedByte);
+ DPRINT("ReceivedByte 0x%02x\n", ReceivedByte);
/* Synchronize */
if ((ReceivedByte & 0x40) == 0x40)