mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
Do not use named events, they are global!
This commit is contained in:
@@ -1064,7 +1064,7 @@ static void rdpsnd_queue_free(void* data)
|
||||
static UINT rdpsnd_virtual_channel_event_initialized(rdpsndPlugin* rdpsnd,
|
||||
LPVOID pData, UINT32 dataLength)
|
||||
{
|
||||
rdpsnd->stopEvent = CreateEventA(NULL, TRUE, FALSE, "rdpsnd->stopEvent");
|
||||
rdpsnd->stopEvent = CreateEventA(NULL, TRUE, FALSE, NULL);
|
||||
|
||||
if (!rdpsnd->stopEvent)
|
||||
goto fail;
|
||||
|
||||
@@ -301,7 +301,7 @@ UINT freerdp_rdpsnd_client_subsystem_entry(PFREERDP_RDPSND_DEVICE_ENTRY_POINTS p
|
||||
winmm->device.Close = rdpsnd_winmm_close;
|
||||
winmm->device.Free = rdpsnd_winmm_free;
|
||||
winmm->log = WLog_Get(TAG);
|
||||
winmm->playedEvent = CreateEventA(NULL, FALSE, FALSE, "winmm::sample_played");
|
||||
winmm->playedEvent = CreateEventA(NULL, FALSE, FALSE, NULL);
|
||||
|
||||
args = pEntryPoints->args;
|
||||
rdpsnd_winmm_parse_addin_args((rdpsndDevicePlugin*) winmm, args);
|
||||
|
||||
@@ -2518,12 +2518,10 @@ BOOL wf_cliprdr_init(wfContext* wfc, CliprdrClientContext* cliprdr)
|
||||
sizeof(formatMapping))))
|
||||
goto error;
|
||||
|
||||
if (!(clipboard->response_data_event = CreateEvent(NULL, TRUE, FALSE,
|
||||
_T("response_data_event"))))
|
||||
if (!(clipboard->response_data_event = CreateEvent(NULL, TRUE, FALSE, NULL)))
|
||||
goto error;
|
||||
|
||||
if (!(clipboard->req_fevent = CreateEvent(NULL, TRUE, FALSE,
|
||||
_T("request_filecontents_event"))))
|
||||
if (!(clipboard->req_fevent = CreateEvent(NULL, TRUE, FALSE, NULL)))
|
||||
goto error;
|
||||
|
||||
if (!(clipboard->thread = CreateThread(NULL, 0, cliprdr_thread_func, clipboard, 0, NULL)))
|
||||
|
||||
Reference in New Issue
Block a user