Skip to content

Commit

Permalink
Update address_space.cpp -Fix VirtualAllocEx 2
Browse files Browse the repository at this point in the history
  • Loading branch information
okt04175 authored Dec 14, 2024
1 parent c59045e commit 896de37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/address_space.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ struct AddressSpace::Impl {
} else {
ptr =
VirtualAllocEx(process, reinterpret_cast<LPVOID>(virtual_addr), size,
MEM_RESERVE | MEM_COMMIT, prot);
MEM_RESERVE | MEM_COMMIT, PAGE_WRITECOPY);
}
ASSERT_MSG(ptr, "{}", Common::GetLastErrorMsg());
return ptr;
Expand Down

0 comments on commit 896de37

Please sign in to comment.