diff options
| author | Dane Z. Bush <danebush45@yahoo.com> | 2017-09-30 14:59:07 -0400 |
|---|---|---|
| committer | Léo Lam <leo@innovatetechnologi.es> | 2017-10-11 16:35:32 +0200 |
| commit | 4dfe6c08755882d2009b3fa70fa284f3cc398399 (patch) | |
| tree | 8f558feff5969a4dd4a17df185bd99eb509ee6f0 /Source/Core/Common/MemArena.cpp | |
| parent | 90ca2e8042ce2d119dc4723f6ce82b1a60372aaa (diff) | |
MemArena: Name shared memory handle
Assign a name to the CreateFileMapping handle on Win32 so third party
applications can read from Dolphin's memory and integrate with the
current emulation.
Built and tested, multiple sessions are still possible without
collisions.
Diffstat (limited to 'Source/Core/Common/MemArena.cpp')
| -rw-r--r-- | Source/Core/Common/MemArena.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/Common/MemArena.cpp b/Source/Core/Common/MemArena.cpp index 082670d2b3..d9b3d1a37c 100644 --- a/Source/Core/Common/MemArena.cpp +++ b/Source/Core/Common/MemArena.cpp @@ -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) |
