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__
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);
}