[*] 32bit swaplock compile
This commit is contained in:
parent
802361c57e
commit
5ea5e0314f
@ -20,8 +20,8 @@ namespace Aurora::Memory::SwapLock
|
||||
{
|
||||
for (const auto &addressRange : addressRanges)
|
||||
{
|
||||
auto base = AuPageRound(addressRange.first, AuHwInfo::gPageSize);
|
||||
auto length = AuPageRoundUp(addressRange.second + (addressRange.first - base), AuHwInfo::gPageSize);
|
||||
auto base = AuPageRound(addressRange.first, AuUInt(AuHwInfo::gPageSize));
|
||||
auto length = AuPageRoundUp(addressRange.second + (addressRange.first - base), AuUInt(AuHwInfo::gPageSize));
|
||||
|
||||
#if defined(AURORA_IS_MODERNNT_DERIVED)
|
||||
if (!VirtualLock(AuReinterpretCast<LPVOID>(base), length))
|
||||
@ -47,8 +47,8 @@ namespace Aurora::Memory::SwapLock
|
||||
{
|
||||
for (const auto &addressRange : addressRanges)
|
||||
{
|
||||
auto base = AuPageRound(addressRange.first, AuHwInfo::gPageSize);
|
||||
auto length = AuPageRoundUp(addressRange.second + (addressRange.first - base), AuHwInfo::gPageSize);
|
||||
auto base = AuPageRound(addressRange.first, AuUInt(AuHwInfo::gPageSize));
|
||||
auto length = AuPageRoundUp(addressRange.second + (addressRange.first - base), AuUInt(AuHwInfo::gPageSize));
|
||||
|
||||
#if defined(AURORA_IS_MODERNNT_DERIVED)
|
||||
if (!VirtualUnlock(AuReinterpretCast<LPVOID>(base), length))
|
||||
|
Loading…
Reference in New Issue
Block a user