https://git.reactos.org/?p=reactos.git;a=commitdiff;h=6409f97bc4eddd9627503…
commit 6409f97bc4eddd96275033faf5bb80db5e4c680e
Author: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
AuthorDate: Thu Jun 22 21:49:34 2023 +0200
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Sun Jun 25 21:25:06 2023 +0200
[NTOS:CONFIG] Use correct "Interface" variable type; use
InterfaceTypeUndefined instead of -1.
---
ntoskrnl/config/cmconfig.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/ntoskrnl/config/cmconfig.c b/ntoskrnl/config/cmconfig.c
index 43239537d79..135ea9ff4df 100644
--- a/ntoskrnl/config/cmconfig.c
+++ b/ntoskrnl/config/cmconfig.c
@@ -209,7 +209,8 @@ CmpSetupConfigurationTree(IN PCONFIGURATION_COMPONENT_DATA
CurrentEntry,
{
PCONFIGURATION_COMPONENT Component;
USHORT DeviceIndexTable[MaximumType + 1] = {0};
- ULONG Interface = InterfaceType, Bus = BusNumber, i;
+ INTERFACE_TYPE Interface = InterfaceType;
+ ULONG Bus = BusNumber, i;
NTSTATUS Status;
HANDLE NewHandle;
@@ -279,7 +280,7 @@ CmpSetupConfigurationTree(IN PCONFIGURATION_COMPONENT_DATA
CurrentEntry,
/* Unknown */
default:
{
- Interface = -1;
+ Interface = InterfaceTypeUndefined;
Bus = CmpUnknownBusCount++;
break;
}
@@ -401,7 +402,7 @@ CmpInitializeHardwareConfiguration(IN PLOADER_PARAMETER_BLOCK
LoaderBlock)
/* Setup the configuration tree */
Status = CmpSetupConfigurationTree(LoaderBlock->ConfigurationRoot,
KeyHandle,
- -1,
+ InterfaceTypeUndefined,
-1);
}
else