From 2fb1459dff7bba79a3060fc2e98ee0a3c96bdca9 Mon Sep 17 00:00:00 2001
From: Thulinma <jaron@vietors.com>
Date: Fri, 28 Aug 2015 22:17:29 +0200
Subject: [PATCH] Fixed Windows compile.

---
 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 d2c34934..be6fe876 100644
--- a/lib/shared_memory.cpp
+++ b/lib/shared_memory.cpp
@@ -187,7 +187,7 @@ namespace IPC {
 #if defined(__CYGWIN__) || defined(_WIN32)
     result = WaitForSingleObject(mySem, 0);//wait at most 1ms
     if (result == 0x80){
-      WARN_MSG("Consistency error caught on semaphore %s", myName);
+      WARN_MSG("Consistency error caught on semaphore %s", myName.c_str());
       result = 0;
     }
 #else
@@ -202,7 +202,7 @@ namespace IPC {
 #if defined(__CYGWIN__) || defined(_WIN32)
     result = WaitForSingleObject(mySem, 1000);//wait at most 1s
     if (result == 0x80){
-      WARN_MSG("Consistency error caught on semaphore %s", myName);
+      WARN_MSG("Consistency error caught on semaphore %s", myName.c_str());
       result = 0;
     }
 #else