[ISAPNP] Fix the truncation of 32-bit configuration I/O reads

CORE-18562
This commit is contained in:
Dmitry Borisov 2024-05-03 20:03:51 +06:00
parent b36d9bd9c1
commit 991dbeff53

View file

@ -118,7 +118,7 @@ ReadDoubleWord(
_In_ PUCHAR ReadDataPort, _In_ PUCHAR ReadDataPort,
_In_ UCHAR Address) _In_ UCHAR Address)
{ {
return ((ReadWord(ReadDataPort, Address) << 8) | return ((ReadWord(ReadDataPort, Address) << 16) |
(ReadWord(ReadDataPort, Address + 2))); (ReadWord(ReadDataPort, Address + 2)));
} }