https://git.reactos.org/?p=reactos.git;a=commitdiff;h=c1d7087352bdc91c469c4…
commit c1d7087352bdc91c469c49d6d7bc624aab803ebb
Author: Dmitry Borisov <di.sean(a)protonmail.com>
AuthorDate: Fri May 3 20:08:33 2024 +0600
Commit: Dmitry Borisov <di.sean(a)protonmail.com>
CommitDate: Sat Aug 3 17:08:43 2024 +0600
[ISAPNP] Fix the reported length of the memory I/O ranges
CORE-18562
---
drivers/bus/isapnp/isapnp.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/bus/isapnp/isapnp.c b/drivers/bus/isapnp/isapnp.c
index 116b035ac35..7126166b092 100644
--- a/drivers/bus/isapnp/isapnp.c
+++ b/drivers/bus/isapnp/isapnp.c
@@ -945,7 +945,7 @@ IsaPnpCreateLogicalDeviceResources(
Descriptor->Flags |= CM_RESOURCE_MEMORY_READ_ONLY;
else
Descriptor->Flags |= CM_RESOURCE_MEMORY_READ_WRITE;
- Descriptor->u.Memory.Length = LogDev->MemRange[i].Description.Length;
+ Descriptor->u.Memory.Length = LogDev->MemRange[i].CurrentLength;
Descriptor->u.Memory.Start.QuadPart = LogDev->MemRange[i].CurrentBase;
}
for (i = 0; i < RTL_NUMBER_OF(LogDev->MemRange32); i++)
@@ -971,7 +971,7 @@ IsaPnpCreateLogicalDeviceResources(
Descriptor->Flags |= CM_RESOURCE_MEMORY_READ_ONLY;
else
Descriptor->Flags |= CM_RESOURCE_MEMORY_READ_WRITE;
- Descriptor->u.Memory.Length = LogDev->MemRange32[i].Description.Length;
+ Descriptor->u.Memory.Length = LogDev->MemRange32[i].CurrentLength;
Descriptor->u.Memory.Start.QuadPart = LogDev->MemRange32[i].CurrentBase;
}