mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-12-25 16:11:49 +01:00
Modify check for EventWaitHandle
This commit is contained in:
parent
ffbcdb21b3
commit
e5cd923e03
@ -81,7 +81,9 @@ namespace DS4Windows
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
// another instance is already running if OpenExsting succeeds.
|
// 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.Set(); // signal the other instance.
|
||||||
threadComEvent.Close();
|
threadComEvent.Close();
|
||||||
return; // return immediatly.
|
return; // return immediatly.
|
||||||
|
Loading…
Reference in New Issue
Block a user