From 2808595d7b277942b855522299e0bd2eeec38208 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Thu, 16 Apr 2015 14:07:04 +0200 Subject: [PATCH] Changed Windows shared memory back to non-global. --- lib/shared_memory.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/shared_memory.cpp b/lib/shared_memory.cpp index 3d7f26fa..73c2d667 100644 --- a/lib/shared_memory.cpp +++ b/lib/shared_memory.cpp @@ -293,14 +293,14 @@ namespace IPC { #ifdef __CYGWIN__ if (master) { //Under cygwin, all pages are 4 bytes longer than claimed. - handle = CreateFileMappingA(INVALID_HANDLE_VALUE, NULL, PAGE_READWRITE, 0, len+4, std::string("Global\\" + name).c_str()); + handle = CreateFileMappingA(INVALID_HANDLE_VALUE, NULL, PAGE_READWRITE, 0, len+4, name.c_str()); } else { int i = 0; do { if (i != 0) { Util::sleep(1000); } - handle = OpenFileMappingA(FILE_MAP_ALL_ACCESS, FALSE, std::string("Global\\" + name).c_str()); + handle = OpenFileMappingA(FILE_MAP_ALL_ACCESS, FALSE, name.c_str()); i++; } while (i < 10 && !handle && autoBackoff); }