mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[NTOS:CONFIG] Use correct "Interface" variable type; use InterfaceTypeUndefined instead of -1.
This commit is contained in:
parent
bd5209d9f4
commit
6409f97bc4
1 changed files with 4 additions and 3 deletions
|
@ -209,7 +209,8 @@ CmpSetupConfigurationTree(IN PCONFIGURATION_COMPONENT_DATA CurrentEntry,
|
||||||
{
|
{
|
||||||
PCONFIGURATION_COMPONENT Component;
|
PCONFIGURATION_COMPONENT Component;
|
||||||
USHORT DeviceIndexTable[MaximumType + 1] = {0};
|
USHORT DeviceIndexTable[MaximumType + 1] = {0};
|
||||||
ULONG Interface = InterfaceType, Bus = BusNumber, i;
|
INTERFACE_TYPE Interface = InterfaceType;
|
||||||
|
ULONG Bus = BusNumber, i;
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
HANDLE NewHandle;
|
HANDLE NewHandle;
|
||||||
|
|
||||||
|
@ -279,7 +280,7 @@ CmpSetupConfigurationTree(IN PCONFIGURATION_COMPONENT_DATA CurrentEntry,
|
||||||
/* Unknown */
|
/* Unknown */
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
Interface = -1;
|
Interface = InterfaceTypeUndefined;
|
||||||
Bus = CmpUnknownBusCount++;
|
Bus = CmpUnknownBusCount++;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -401,7 +402,7 @@ CmpInitializeHardwareConfiguration(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||||
/* Setup the configuration tree */
|
/* Setup the configuration tree */
|
||||||
Status = CmpSetupConfigurationTree(LoaderBlock->ConfigurationRoot,
|
Status = CmpSetupConfigurationTree(LoaderBlock->ConfigurationRoot,
|
||||||
KeyHandle,
|
KeyHandle,
|
||||||
-1,
|
InterfaceTypeUndefined,
|
||||||
-1);
|
-1);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue