summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ftnoir_protocol_wine/ftnoir_protocol_wine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ftnoir_protocol_wine/ftnoir_protocol_wine.cpp b/ftnoir_protocol_wine/ftnoir_protocol_wine.cpp
index 96a15b93..698c2236 100644
--- a/ftnoir_protocol_wine/ftnoir_protocol_wine.cpp
+++ b/ftnoir_protocol_wine/ftnoir_protocol_wine.cpp
@@ -7,7 +7,7 @@
/** constructor **/
FTNoIR_Protocol::FTNoIR_Protocol() : lck_shm(WINE_SHM_NAME, WINE_MTX_NAME, sizeof(WineSHM)), shm(NULL), gameid(0)
{
- if (lck_shm.mem != (void*) -1) {
+ if (lck_shm.success()) {
shm = (WineSHM*) lck_shm.mem;
memset(shm, 0, sizeof(*shm));
}
@@ -53,7 +53,7 @@ void FTNoIR_Protocol::sendHeadposeToGame( double *headpose, double *rawheadpose
//
bool FTNoIR_Protocol::checkServerInstallationOK()
{
- return lck_shm.mem != (void*)-1;
+ return lck_shm.success();
}
////////////////////////////////////////////////////////////////////////////////