mirror of https://github.com/PCSX2/pcsx2.git
Test
This commit is contained in:
parent
19b7e35571
commit
3a2f210b02
|
@ -218,7 +218,7 @@ u8* SharedMemoryMappingArea::Map(void* file_handle, size_t file_offset, void* ma
|
|||
else
|
||||
{
|
||||
Console.WriteLn("VirtualAlloc2(_, %p, %zx, MEM_REPLACE_PLACEHOLDER, PAGE_READWRITE, nullptr, 0)", map_base, map_size);
|
||||
if (!VirtualAlloc2(GetCurrentProcess(), map_base, map_size, MEM_REPLACE_PLACEHOLDER, PAGE_READWRITE, nullptr, 0))
|
||||
if (!VirtualAlloc2(GetCurrentProcess(), map_base, map_size, MEM_RESERVE | MEM_COMMIT | MEM_REPLACE_PLACEHOLDER, PAGE_READWRITE, nullptr, 0))
|
||||
{
|
||||
Console.Error("(SharedMemoryMappingArea) VirtualAlloc2() failed: %u", GetLastError());
|
||||
return nullptr;
|
||||
|
|
Loading…
Reference in New Issue