Author: hpoussin
Date: Mon Jan 5 14:36:39 2009
New Revision: 38589
URL:
http://svn.reactos.org/svn/reactos?rev=38589&view=rev
Log:
Add missing breaks
Spotted by Maciej Bialas (bjauy at o2.pl)
Modified:
trunk/reactos/drivers/input/sermouse/detect.c
trunk/reactos/drivers/serial/serenum/detect.c
Modified: trunk/reactos/drivers/input/sermouse/detect.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/input/sermouse/det…
==============================================================================
--- trunk/reactos/drivers/input/sermouse/detect.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/input/sermouse/detect.c [iso-8859-1] Mon Jan 5 14:36:39 2009
@@ -222,12 +222,15 @@
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;
}
Modified: trunk/reactos/drivers/serial/serenum/detect.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/serial/serenum/det…
==============================================================================
--- trunk/reactos/drivers/serial/serenum/detect.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/serial/serenum/detect.c [iso-8859-1] Mon Jan 5 14:36:39 2009
@@ -572,6 +572,7 @@
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 @@
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);