summaryrefslogtreecommitdiff
path: root/src/debug/di/shimlocaldatatarget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/debug/di/shimlocaldatatarget.cpp')
-rw-r--r--src/debug/di/shimlocaldatatarget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/debug/di/shimlocaldatatarget.cpp b/src/debug/di/shimlocaldatatarget.cpp
index c4a5263810..36ea611af2 100644
--- a/src/debug/di/shimlocaldatatarget.cpp
+++ b/src/debug/di/shimlocaldatatarget.cpp
@@ -322,7 +322,7 @@ ShimLocalDataTarget::ReadVirtual(
{
// Calculate bytes to read and don't let read cross
// a page boundary.
- readSize = OS_PAGE_SIZE - (ULONG32)(address & (OS_PAGE_SIZE - 1));
+ readSize = GetOsPageSize() - (ULONG32)(address & (GetOsPageSize() - 1));
readSize = min(cbRequestSize, readSize);
if (!ReadProcessMemory(m_hProcess, (PVOID)(ULONG_PTR)address,