summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--x-plane-plugin/plugin.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/x-plane-plugin/plugin.c b/x-plane-plugin/plugin.c
index eae2bf0b..dd771ab5 100644
--- a/x-plane-plugin/plugin.c
+++ b/x-plane-plugin/plugin.c
@@ -108,11 +108,7 @@ PLUGIN_API int XPluginStart ( char * outName, char * outSignature, char * outDes
if (view_x && view_y && view_z && view_heading && view_pitch) {
lck_posix = PortableLockedShm_init(WINE_SHM_NAME, WINE_MTX_NAME, sizeof(WineSHM));
if (lck_posix->mem == (void*)-1) {
- fprintf(stderr, "opentrack failed to init SHM #1!\n");
- return 0;
- }
- if (lck_posix->mem == NULL) {
- fprintf(stderr, "opentrack failed to init SHM #2!\n");
+ fprintf(stderr, "opentrack failed to init SHM!\n");
return 0;
}
shm_posix = (WineSHM*) lck_posix->mem;