https://git.reactos.org/?p=reactos.git;a=commitdiff;h=8eb317389685f218666eef3c097a94f72d9f6acb

commit 8eb317389685f218666eef3c097a94f72d9f6acb
Author:     Hervé Poussineau <[email protected]>
AuthorDate: Sat Feb 8 22:02:30 2020 +0100
Commit:     Hervé Poussineau <[email protected]>
CommitDate: Mon Feb 10 21:33:36 2020 +0100

    [ISAPNP] When skipping a wrong tag in configuration, skip the length of 
this tag
---
 drivers/bus/isapnp/hardware.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/bus/isapnp/hardware.c b/drivers/bus/isapnp/hardware.c
index 0e735f10312..6922349a53c 100644
--- a/drivers/bus/isapnp/hardware.c
+++ b/drivers/bus/isapnp/hardware.c
@@ -288,7 +288,7 @@ FindTag(PUCHAR ReadDataPort, USHORT WantedTag, PVOID 
Buffer, ULONG Length)
     }
     else
     {
-      Peek(ReadDataPort, NULL, Length);
+      Peek(ReadDataPort, NULL, TagLen);
     }
   } while (Tag != ISAPNP_TAG_END);
 

Reply via email to