mirror of
https://github.com/reactos/reactos.git
synced 2025-05-06 10:28:45 +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 BusQueryCompatibleIDs:
|
||||
MaxSeparators = MAX_SEPARATORS_DEVICEID;
|
||||
IsMultiSz = TRUE;
|
||||
break;
|
||||
|
||||
|
@ -1823,6 +1824,7 @@ IopValidateID(
|
|||
|
||||
StringEnd = PtrChar + MAX_DEVICE_ID_LEN + 1;
|
||||
PtrPrevChar = PtrChar;
|
||||
SeparatorsCount = 0;
|
||||
}
|
||||
else if (Char < ' ' || Char > 0x7F || Char == ',')
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue