erroneous wait operation

Reinhard Karcher rkarcher at frey.de
Mon Jan 1 10:47:04 CST 2007


Hello wine developers,

the attached patch fixes some issues I had with the 16 bit configuration
program for our SOHO PBX.

- The fix prevents the timeout value "0" be interpreted as "timeout
  now" instead of "timeout never", as it is meant to be. This bug broke
  the asynchronous reads on the serial port.

Michael Karcher

diff -ur ../wine-0.9.28/server/serial.c ../wine-0.9.28n/server/serial.c
--- ../wine-0.9.28/server/serial.c      2006-11-25 12:00:23.000000000 +0100
+++ ../wine-0.9.28n/server/serial.c     2006-12-28 15:48:43.000000000 +0100
@@ -272,7 +272,7 @@
     }

     add_timeout( &when, timeout );
-    if (!create_async( current, &when, queue, apc, user, iosb )) return;
+    if (!create_async( current, timeout ? &when : NULL, queue, apc, user, iosb )) return;

     /* Check if the new pending request can be served immediately */
     events = check_fd_events( fd, serial_get_poll_events( fd ) );




More information about the wine-patches mailing list