]> git.pond.sub.org Git - empserver/commitdiff
Fix client to allow multiple to clients to run concurrently for WIN32
authorRon Koenderink <rkoenderink@yahoo.ca>
Sun, 1 Feb 2009 14:58:37 +0000 (08:58 -0600)
committerRon Koenderink <rkoenderink@yahoo.ca>
Sun, 1 Feb 2009 14:58:37 +0000 (08:58 -0600)
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

index 0649c34044a2eb87502632bd5cf4b5a002656023..f44cde7fb8bfe8209ea0ae28785317bc0c85ade1 100644 (file)
@@ -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);
 }