fixed uninitialized variable warnings
authorThomas Bluemel <thomas@reactsoft.com>
Wed, 9 Nov 2005 18:39:33 +0000 (18:39 +0000)
committerThomas Bluemel <thomas@reactsoft.com>
Wed, 9 Nov 2005 18:39:33 +0000 (18:39 +0000)
svn path=/trunk/; revision=19103

reactos/drivers/input/sermouse/detect.c
reactos/drivers/input/sermouse/internaldevctl.c

index dfa1ae7..dbb3a63 100644 (file)
@@ -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;
index 90e1b8c..b706b95 100644 (file)
@@ -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: