https://git.reactos.org/?p=reactos.git;a=commitdiff;h=991dbeff5326ae203c6c9…
commit 991dbeff5326ae203c6c9a3ed74e92278c0b37c6
Author: Dmitry Borisov <di.sean(a)protonmail.com>
AuthorDate: Fri May 3 20:03:51 2024 +0600
Commit: Dmitry Borisov <di.sean(a)protonmail.com>
CommitDate: Sat Aug 3 17:08:43 2024 +0600
[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)));
}