mirror of
https://github.com/reactos/reactos.git
synced 2025-05-06 18:31:26 +00:00
[NTOSKRNL] Fix IopValidateID using uninitialized var, reset SeparatorsCount in the MultiSz case.
This commit is contained in:
parent
6b1ca75899
commit
a5f12908df
1 changed files with 2 additions and 0 deletions
|
@ -1793,6 +1793,7 @@ IopValidateID(
|
||||||
|
|
||||||
case BusQueryHardwareIDs:
|
case BusQueryHardwareIDs:
|
||||||
case BusQueryCompatibleIDs:
|
case BusQueryCompatibleIDs:
|
||||||
|
MaxSeparators = MAX_SEPARATORS_DEVICEID;
|
||||||
IsMultiSz = TRUE;
|
IsMultiSz = TRUE;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -1823,6 +1824,7 @@ IopValidateID(
|
||||||
|
|
||||||
StringEnd = PtrChar + MAX_DEVICE_ID_LEN + 1;
|
StringEnd = PtrChar + MAX_DEVICE_ID_LEN + 1;
|
||||||
PtrPrevChar = PtrChar;
|
PtrPrevChar = PtrChar;
|
||||||
|
SeparatorsCount = 0;
|
||||||
}
|
}
|
||||||
else if (Char < ' ' || Char > 0x7F || Char == ',')
|
else if (Char < ' ' || Char > 0x7F || Char == ',')
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue