Changed windows shm functions to ANSI equivalents.

This commit is contained in:
Thulinma 2015-04-13 16:58:30 +02:00
parent c000249ad5
commit 8d377602be

View file

@ -293,14 +293,14 @@ namespace IPC {
#ifdef __CYGWIN__ #ifdef __CYGWIN__
if (master) { if (master) {
//Under cygwin, all pages are 4 bytes longer than claimed. //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 { } else {
int i = 0; int i = 0;
do { do {
if (i != 0) { if (i != 0) {
Util::sleep(1000); Util::sleep(1000);
} }
handle = OpenFileMapping(FILE_MAP_ALL_ACCESS, FALSE, name.c_str()); handle = OpenFileMappingA(FILE_MAP_ALL_ACCESS, FALSE, name.c_str());
i++; i++;
} while (i < 10 && !handle && autoBackoff); } while (i < 10 && !handle && autoBackoff);
} }