[ISAPNP] Fix the reported length of the memory I/O ranges

CORE-18562
This commit is contained in:
Dmitry Borisov 2024-05-03 20:08:33 +06:00
parent 9b7f34601a
commit c1d7087352

View file

@ -945,7 +945,7 @@ IsaPnpCreateLogicalDeviceResources(
Descriptor->Flags |= CM_RESOURCE_MEMORY_READ_ONLY; Descriptor->Flags |= CM_RESOURCE_MEMORY_READ_ONLY;
else else
Descriptor->Flags |= CM_RESOURCE_MEMORY_READ_WRITE; 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; Descriptor->u.Memory.Start.QuadPart = LogDev->MemRange[i].CurrentBase;
} }
for (i = 0; i < RTL_NUMBER_OF(LogDev->MemRange32); i++) for (i = 0; i < RTL_NUMBER_OF(LogDev->MemRange32); i++)
@ -971,7 +971,7 @@ IsaPnpCreateLogicalDeviceResources(
Descriptor->Flags |= CM_RESOURCE_MEMORY_READ_ONLY; Descriptor->Flags |= CM_RESOURCE_MEMORY_READ_ONLY;
else else
Descriptor->Flags |= CM_RESOURCE_MEMORY_READ_WRITE; 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; Descriptor->u.Memory.Start.QuadPart = LogDev->MemRange32[i].CurrentBase;
} }