+ /* First, we remove the number */
+ ValueName.Length -= sizeof(WCHAR);
+
+ /* Let's see if it is a floppy device */
+ if (RtlCompareUnicodeString(&ValueName, &IdentifierFloppy, FALSE) == 0)
+ {
+ pHardwareId = &HardwareIdFloppy;
+ DeviceIndex = DeviceIndexFloppy++;
+ }
+ /* Nope, is it a parallel port? */
+ else if (RtlCompareUnicodeString(&ValueName, &IdentifierParallel, FALSE) == 0)
+ {
+ pHardwareId = &HardwareIdParallel;
+ DeviceIndex = DeviceIndexParallel++;
+ }
+ /* Nope, out of ideas so let's skip this one */
+ else
+ {
+ ValueName.Length += sizeof(WCHAR);
+ DPRINT("Unknown device '%wZ'\n", &ValueName);
+ goto nextdevice;
+ }
+
+ /* Add the number back */
+ ValueName.Length += sizeof(WCHAR);