mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-09 18:45:40 +00:00
Merge pull request #6091 from TheFreezebug/patch-2
MemArena: Name shared memory handle
This commit is contained in:
commit
2dfbf866fb
@ -55,8 +55,8 @@ static int AshmemCreateFileMapping(const char* name, size_t size)
|
|||||||
void MemArena::GrabSHMSegment(size_t size)
|
void MemArena::GrabSHMSegment(size_t size)
|
||||||
{
|
{
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
hMemoryMapping =
|
hMemoryMapping = CreateFileMapping(INVALID_HANDLE_VALUE, nullptr, PAGE_READWRITE, 0,
|
||||||
CreateFileMapping(INVALID_HANDLE_VALUE, nullptr, PAGE_READWRITE, 0, (DWORD)(size), nullptr);
|
static_cast<DWORD>(size), L"Dolphin-emu");
|
||||||
#elif defined(ANDROID)
|
#elif defined(ANDROID)
|
||||||
fd = AshmemCreateFileMapping("Dolphin-emu", size);
|
fd = AshmemCreateFileMapping("Dolphin-emu", size);
|
||||||
if (fd < 0)
|
if (fd < 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user