From 8d377602bec4c9f5f115d4a8f1b01275e8d900dd Mon Sep 17 00:00:00 2001 From: Thulinma Date: Mon, 13 Apr 2015 16:58:30 +0200 Subject: [PATCH] Changed windows shm functions to ANSI equivalents. --- 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 6990fb25..42d48cf4 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 = CreateFileMapping(INVALID_HANDLE_VALUE, NULL, PAGE_READWRITE, 0, len+4, 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 = OpenFileMapping(FILE_MAP_ALL_ACCESS, FALSE, name.c_str()); + handle = OpenFileMappingA(FILE_MAP_ALL_ACCESS, FALSE, name.c_str()); i++; } while (i < 10 && !handle && autoBackoff); }