|
|
|
@@ -234198,7 +234198,7 @@ bool InterProcessLock::enter (const int timeOutMillisecs) throw() |
|
|
|
{ |
|
|
|
if (reentrancyLevel++ == 0) |
|
|
|
{ |
|
|
|
internal = CreateMutex (0, TRUE, name); |
|
|
|
internal = CreateMutex (0, TRUE, "Global\\" + name); |
|
|
|
|
|
|
|
if (internal != 0 && GetLastError() == ERROR_ALREADY_EXISTS) |
|
|
|
{ |
|
|
|
@@ -264828,8 +264828,8 @@ static bool makeSureClientExists() |
|
|
|
class MidiPortAndEndpoint |
|
|
|
{ |
|
|
|
public: |
|
|
|
MidiPortAndEndpoint (MIDIPortRef port, MIDIEndpointRef endpoint) throw() |
|
|
|
: port (port), endPoint (endpoint) |
|
|
|
MidiPortAndEndpoint (MIDIPortRef port_, MIDIEndpointRef endPoint_) throw() |
|
|
|
: port (port_), endPoint (endPoint_) |
|
|
|
{ |
|
|
|
} |
|
|
|
|
|
|
|
@@ -264838,7 +264838,7 @@ public: |
|
|
|
if (port != 0) |
|
|
|
MIDIPortDispose (port); |
|
|
|
|
|
|
|
if (endPoint != 0) |
|
|
|
if (port == 0 && endPoint != 0) // if port == 0, it means we created the endpoint, so it's safe to delete it |
|
|
|
MIDIEndpointDispose (endPoint); |
|
|
|
} |
|
|
|
|
|
|
|
@@ -272540,8 +272540,8 @@ static bool makeSureClientExists() |
|
|
|
class MidiPortAndEndpoint |
|
|
|
{ |
|
|
|
public: |
|
|
|
MidiPortAndEndpoint (MIDIPortRef port, MIDIEndpointRef endpoint) throw() |
|
|
|
: port (port), endPoint (endpoint) |
|
|
|
MidiPortAndEndpoint (MIDIPortRef port_, MIDIEndpointRef endPoint_) throw() |
|
|
|
: port (port_), endPoint (endPoint_) |
|
|
|
{ |
|
|
|
} |
|
|
|
|
|
|
|
@@ -272550,7 +272550,7 @@ public: |
|
|
|
if (port != 0) |
|
|
|
MIDIPortDispose (port); |
|
|
|
|
|
|
|
if (endPoint != 0) |
|
|
|
if (port == 0 && endPoint != 0) // if port == 0, it means we created the endpoint, so it's safe to delete it |
|
|
|
MIDIEndpointDispose (endPoint); |
|
|
|
} |
|
|
|
|
|
|
|
|