Skip to content
Permalink
Browse files
Merge pull request #6091 from TheFreezebug/patch-2
MemArena: Name shared memory handle
  • Loading branch information
leoetlino committed Oct 11, 2017
2 parents 90ca2e8 + 4dfe6c0 commit 2dfbf86
Showing 1 changed file with 2 additions and 2 deletions.
@@ -55,8 +55,8 @@ static int AshmemCreateFileMapping(const char* name, size_t size)
void MemArena::GrabSHMSegment(size_t size)
{
#ifdef _WIN32
hMemoryMapping =
CreateFileMapping(INVALID_HANDLE_VALUE, nullptr, PAGE_READWRITE, 0, (DWORD)(size), nullptr);
hMemoryMapping = CreateFileMapping(INVALID_HANDLE_VALUE, nullptr, PAGE_READWRITE, 0,
static_cast<DWORD>(size), L"Dolphin-emu");
#elif defined(ANDROID)
fd = AshmemCreateFileMapping("Dolphin-emu", size);
if (fd < 0)

0 comments on commit 2dfbf86

Please sign in to comment.