Skip to content
Snippets Groups Projects
Commit 82b89922 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Don't give names to events.

It looks like Windows actually uses the name for matching existing
events, so if two events have the same name, they end up being the
same object.
parent 2375196f
No related branches found
No related tags found
No related merge requests found
Pipeline #5298 passed
...@@ -3679,7 +3679,7 @@ bool sbbs_t::init() ...@@ -3679,7 +3679,7 @@ bool sbbs_t::init()
#ifdef USE_CRYPTLIB #ifdef USE_CRYPTLIB
pthread_mutex_init(&ssh_mutex,NULL); pthread_mutex_init(&ssh_mutex,NULL);
ssh_mutex_created = true; ssh_mutex_created = true;
ssh_active = CreateEvent(NULL, TRUE, FALSE, "ssh_active"); ssh_active = CreateEvent(NULL, TRUE, FALSE, NULL);
#endif #endif
pthread_mutex_init(&input_thread_mutex,NULL); pthread_mutex_init(&input_thread_mutex,NULL);
input_thread_mutex_created = true; input_thread_mutex_created = true;
......
...@@ -261,8 +261,8 @@ static void internal_do_cryptInit(void) ...@@ -261,8 +261,8 @@ static void internal_do_cryptInit(void)
} }
pthread_mutex_init(&ssl_cert_mutex, NULL); pthread_mutex_init(&ssl_cert_mutex, NULL);
pthread_mutex_init(&ssl_cert_list_mutex, NULL); pthread_mutex_init(&ssl_cert_list_mutex, NULL);
ssl_cert_read_available = CreateEvent(NULL, TRUE, TRUE, "ssl_cert_read_available"); ssl_cert_read_available = CreateEvent(NULL, TRUE, TRUE, NULL);
ssl_cert_write_available = CreateEvent(NULL, TRUE, TRUE, "ssl_cert_write_available"); ssl_cert_write_available = CreateEvent(NULL, TRUE, TRUE, NULL);
return; return;
} }
......
...@@ -99,7 +99,7 @@ sftpc_begin(bool (*send_cb)(uint8_t *buf, size_t len, void *cb_data), void *cb_d ...@@ -99,7 +99,7 @@ sftpc_begin(bool (*send_cb)(uint8_t *buf, size_t len, void *cb_data), void *cb_d
sftpc_state_t ret = (sftpc_state_t)malloc(sizeof(struct sftp_client_state)); sftpc_state_t ret = (sftpc_state_t)malloc(sizeof(struct sftp_client_state));
if (ret == NULL) if (ret == NULL)
return NULL; return NULL;
ret->recv_event = CreateEvent(NULL, TRUE, FALSE, "sftp_recv"); ret->recv_event = CreateEvent(NULL, TRUE, FALSE, NULL);
if (ret->recv_event == NULL) { if (ret->recv_event == NULL) {
free(ret); free(ret);
return NULL; return NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment