From a7ee69d1126646082ce4354fe4d01057c21c3a83 Mon Sep 17 00:00:00 2001 From: Ron Koenderink Date: Sun, 1 Feb 2009 08:58:37 -0600 Subject: [PATCH] Fix client to allow multiple to clients to run concurrently for WIN32 Remove the names for the bounce_empty, bounce_full and ctrl_c_event events. The named events were being shared between all clients running on a WIN32 machine which created the affect of disconnecting a client when an input event occurred in another client. Broken in commit f082ef9f (v4.3.11). --- src/client/play.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client/play.c b/src/client/play.c index 0649c340..f44cde7f 100644 --- a/src/client/play.c +++ b/src/client/play.c @@ -160,9 +160,9 @@ stdin_read_thread(LPVOID lpParam) static void sysdep_stdin_init(void) { - bounce_empty = CreateEvent(NULL, FALSE, TRUE, "bounce_empty"); - bounce_full = CreateEvent(NULL, TRUE, FALSE, "bounce_full"); - ctrl_c_event = CreateEvent(NULL, FALSE, FALSE, "Ctrl_C"); + bounce_empty = CreateEvent(NULL, FALSE, TRUE, NULL); + bounce_full = CreateEvent(NULL, TRUE, FALSE, NULL); + ctrl_c_event = CreateEvent(NULL, FALSE, FALSE, NULL); CreateThread(NULL, 0, stdin_read_thread, NULL, 0, NULL); }