Add missing breaks
authorHervé Poussineau <hpoussin@reactos.org>
Mon, 5 Jan 2009 20:36:39 +0000 (20:36 +0000)
committerHervé Poussineau <hpoussin@reactos.org>
Mon, 5 Jan 2009 20:36:39 +0000 (20:36 +0000)
Spotted by Maciej Bialas (bjauy at o2.pl)

svn path=/trunk/; revision=38589

reactos/drivers/input/sermouse/detect.c
reactos/drivers/serial/serenum/detect.c

index f7c8273..f27ee82 100644 (file)
@@ -222,12 +222,15 @@ SermouseDetectLegacyDevice(
                                case '3':
                                        INFO_(SERMOUSE, "Microsoft Mouse with 3-buttons detected\n");
                                        MouseType = mtLogitech;
+                                       break;
                                case 'Z':
                                        INFO_(SERMOUSE, "Microsoft Wheel Mouse detected\n");
                                        MouseType = mtWheelZ;
+                                       break;
                                default:
                                        INFO_(SERMOUSE, "Microsoft Mouse with 2-buttons detected\n");
                                        MouseType = mtMicrosoft;
+                                       break;
                        }
                        goto ByeBye;
                }
index a10356e..87af589 100644 (file)
@@ -572,6 +572,7 @@ SerenumDetectLegacyDevice(
                                        RtlInitUnicodeString(&DeviceDescription, L"Microsoft Mouse with 3-buttons");
                                        SerenumInitMultiSzString(&HardwareIds, "*PNP0F08", NULL);
                                        SerenumInitMultiSzString(&CompatibleIds, "SERIAL_MOUSE", NULL);
+                                       break;
                                default:
                                        /* Hardware id: *PNP0F01
                                         * Compatible id: SERIAL_MOUSE
@@ -579,6 +580,7 @@ SerenumDetectLegacyDevice(
                                        RtlInitUnicodeString(&DeviceDescription, L"Microsoft Mouse with 2-buttons or Microsoft Wheel Mouse");
                                        SerenumInitMultiSzString(&HardwareIds, "*PNP0F01", NULL);
                                        SerenumInitMultiSzString(&CompatibleIds, "SERIAL_MOUSE", NULL);
+                                       break;
                        }
                        Status = ReportDetectedDevice(DeviceObject,
                                &DeviceDescription, &DeviceId, &InstanceId, &HardwareIds, &CompatibleIds);