Do not use named events, they are global!

This commit is contained in:
Armin Novak
2019-09-02 15:28:31 +02:00
parent 40964301df
commit 12b0b9ea28
3 changed files with 4 additions and 6 deletions

View File

@@ -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;

View File

@@ -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);

View File

@@ -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)))