Reactos

[NTOS:CONFIG] Use correct "Interface" variable type; use InterfaceTypeUndefined instead of -1.

+4 -3
+4 -3
ntoskrnl/config/cmconfig.c
··· 209 209 { 210 210 PCONFIGURATION_COMPONENT Component; 211 211 USHORT DeviceIndexTable[MaximumType + 1] = {0}; 212 - ULONG Interface = InterfaceType, Bus = BusNumber, i; 212 + INTERFACE_TYPE Interface = InterfaceType; 213 + ULONG Bus = BusNumber, i; 213 214 NTSTATUS Status; 214 215 HANDLE NewHandle; 215 216 ··· 279 280 /* Unknown */ 280 281 default: 281 282 { 282 - Interface = -1; 283 + Interface = InterfaceTypeUndefined; 283 284 Bus = CmpUnknownBusCount++; 284 285 break; 285 286 } ··· 401 402 /* Setup the configuration tree */ 402 403 Status = CmpSetupConfigurationTree(LoaderBlock->ConfigurationRoot, 403 404 KeyHandle, 404 - -1, 405 + InterfaceTypeUndefined, 405 406 -1); 406 407 } 407 408 else