diff --git a/reactos/drivers/input/sermouse/detect.c b/reactos/drivers/input/sermouse/detect.c index dfa1ae77fb2..dbb3a63df05 100644 --- a/reactos/drivers/input/sermouse/detect.c +++ b/reactos/drivers/input/sermouse/detect.c @@ -160,7 +160,7 @@ SermouseDetectLegacyDevice( ULONG Command; SERIAL_TIMEOUTS Timeouts; SERIAL_LINE_CONTROL LCR; - ULONG i, Count; + ULONG i, Count = 0; UCHAR Buffer[16]; SERMOUSE_MOUSE_TYPE MouseType = mtNone; NTSTATUS Status; diff --git a/reactos/drivers/input/sermouse/internaldevctl.c b/reactos/drivers/input/sermouse/internaldevctl.c index 90e1b8cd895..b706b955604 100644 --- a/reactos/drivers/input/sermouse/internaldevctl.c +++ b/reactos/drivers/input/sermouse/internaldevctl.c @@ -49,6 +49,7 @@ SermouseInternalDeviceControl( /* Ask read loop to end */ KeSetEvent(&DeviceExtension->StopWorkerThreadEvent, (KPRIORITY)0, FALSE); + Status = STATUS_SUCCESS; break; } case IOCTL_MOUSE_QUERY_ATTRIBUTES: