From e5cd923e036e224dc1a23469b74bc03e13944a36 Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Thu, 26 Jul 2018 03:23:38 -0500 Subject: [PATCH] Modify check for EventWaitHandle --- DS4Windows/Program.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/DS4Windows/Program.cs b/DS4Windows/Program.cs index e41eba1..39416bb 100644 --- a/DS4Windows/Program.cs +++ b/DS4Windows/Program.cs @@ -81,7 +81,9 @@ namespace DS4Windows try { // another instance is already running if OpenExsting succeeds. - threadComEvent = EventWaitHandle.OpenExisting(SingleAppComEventName); + threadComEvent = EventWaitHandle.OpenExisting(SingleAppComEventName, + System.Security.AccessControl.EventWaitHandleRights.Synchronize | + System.Security.AccessControl.EventWaitHandleRights.Modify); threadComEvent.Set(); // signal the other instance. threadComEvent.Close(); return; // return immediatly.