Update address_space.cpp

This commit is contained in:
Stephen Miller
2026-01-21 22:13:03 -06:00
parent 8788f81c89
commit cd0313ba2e

View File

@@ -248,7 +248,7 @@ struct AddressSpace::Impl {
OVERLAPPED param{};
// Offset is the least-significant 32 bits, OffsetHigh is the most-significant.
param.Offset = phys_addr & 0xffffffffull;
param.OffsetHigh = phys_addr & 0xffffffff00000000ull;
param.OffsetHigh = (phys_addr & 0xffffffff00000000ull) >> 32;
bool ret = ReadFile(backing, ptr, size, &resultvar, &param);
ASSERT_MSG(ret, "ReadFile failed. {}", Common::GetLastErrorMsg());
ret = VirtualProtect(ptr, size, prot, &resultvar);