From 991dbeff5326ae203c6c9a3ed74e92278c0b37c6 Mon Sep 17 00:00:00 2001 From: Dmitry Borisov Date: Fri, 3 May 2024 20:03:51 +0600 Subject: [PATCH] [ISAPNP] Fix the truncation of 32-bit configuration I/O reads CORE-18562 --- 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 105fa0d8dbb..a42598e3e6c 100644 --- a/drivers/bus/isapnp/hardware.c +++ b/drivers/bus/isapnp/hardware.c @@ -118,7 +118,7 @@ ReadDoubleWord( _In_ PUCHAR ReadDataPort, _In_ UCHAR Address) { - return ((ReadWord(ReadDataPort, Address) << 8) | + return ((ReadWord(ReadDataPort, Address) << 16) | (ReadWord(ReadDataPort, Address + 2))); }