Add missing breaks

Spotted by Maciej Bialas (bjauy at o2.pl)

svn path=/trunk/; revision=38589
This commit is contained in:
Hervé Poussineau 2009-01-05 20:36:39 +00:00
parent 072a17a70e
commit ddd86fea53
2 changed files with 5 additions and 0 deletions

View file

@ -222,12 +222,15 @@ SermouseDetectLegacyDevice(
case '3': case '3':
INFO_(SERMOUSE, "Microsoft Mouse with 3-buttons detected\n"); INFO_(SERMOUSE, "Microsoft Mouse with 3-buttons detected\n");
MouseType = mtLogitech; MouseType = mtLogitech;
break;
case 'Z': case 'Z':
INFO_(SERMOUSE, "Microsoft Wheel Mouse detected\n"); INFO_(SERMOUSE, "Microsoft Wheel Mouse detected\n");
MouseType = mtWheelZ; MouseType = mtWheelZ;
break;
default: default:
INFO_(SERMOUSE, "Microsoft Mouse with 2-buttons detected\n"); INFO_(SERMOUSE, "Microsoft Mouse with 2-buttons detected\n");
MouseType = mtMicrosoft; MouseType = mtMicrosoft;
break;
} }
goto ByeBye; goto ByeBye;
} }

View file

@ -572,6 +572,7 @@ SerenumDetectLegacyDevice(
RtlInitUnicodeString(&DeviceDescription, L"Microsoft Mouse with 3-buttons"); RtlInitUnicodeString(&DeviceDescription, L"Microsoft Mouse with 3-buttons");
SerenumInitMultiSzString(&HardwareIds, "*PNP0F08", NULL); SerenumInitMultiSzString(&HardwareIds, "*PNP0F08", NULL);
SerenumInitMultiSzString(&CompatibleIds, "SERIAL_MOUSE", NULL); SerenumInitMultiSzString(&CompatibleIds, "SERIAL_MOUSE", NULL);
break;
default: default:
/* Hardware id: *PNP0F01 /* Hardware id: *PNP0F01
* Compatible id: SERIAL_MOUSE * Compatible id: SERIAL_MOUSE
@ -579,6 +580,7 @@ SerenumDetectLegacyDevice(
RtlInitUnicodeString(&DeviceDescription, L"Microsoft Mouse with 2-buttons or Microsoft Wheel Mouse"); RtlInitUnicodeString(&DeviceDescription, L"Microsoft Mouse with 2-buttons or Microsoft Wheel Mouse");
SerenumInitMultiSzString(&HardwareIds, "*PNP0F01", NULL); SerenumInitMultiSzString(&HardwareIds, "*PNP0F01", NULL);
SerenumInitMultiSzString(&CompatibleIds, "SERIAL_MOUSE", NULL); SerenumInitMultiSzString(&CompatibleIds, "SERIAL_MOUSE", NULL);
break;
} }
Status = ReportDetectedDevice(DeviceObject, Status = ReportDetectedDevice(DeviceObject,
&DeviceDescription, &DeviceId, &InstanceId, &HardwareIds, &CompatibleIds); &DeviceDescription, &DeviceId, &InstanceId, &HardwareIds, &CompatibleIds);