[ISAPNP] When skipping a wrong tag in configuration, skip the length of this tag

This commit is contained in:
Hervé Poussineau 2020-02-08 22:02:30 +01:00
parent 62721aefe5
commit 8eb3173896

View file

@ -288,7 +288,7 @@ FindTag(PUCHAR ReadDataPort, USHORT WantedTag, PVOID Buffer, ULONG Length)
} }
else else
{ {
Peek(ReadDataPort, NULL, Length); Peek(ReadDataPort, NULL, TagLen);
} }
} while (Tag != ISAPNP_TAG_END); } while (Tag != ISAPNP_TAG_END);