summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ftnoir_protocol_ft/ftnoir_protocol_ft.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ftnoir_protocol_ft/ftnoir_protocol_ft.cpp b/ftnoir_protocol_ft/ftnoir_protocol_ft.cpp
index ec4eb532..47e99d31 100644
--- a/ftnoir_protocol_ft/ftnoir_protocol_ft.cpp
+++ b/ftnoir_protocol_ft/ftnoir_protocol_ft.cpp
@@ -256,7 +256,7 @@ bool FTNoIR_Protocol::checkServerInstallationOK()
start_dummy();
}
- if (shm.mem == (void*) 0 || shm.mem == (void*) -1)
+ if (!shm.success())
return false;
pMemData->data.DataID = 1;