From 970e0f7ac4ed6af8c27c95c148fbaccd5948d2f7 Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Wed, 9 Nov 2005 18:39:33 +0000 Subject: [PATCH] fixed uninitialized variable warnings svn path=/trunk/; revision=19103 --- reactos/drivers/input/sermouse/detect.c | 2 +- reactos/drivers/input/sermouse/internaldevctl.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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: