[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Re: Wine-990426 - app can't find modem.
From:       lawson_whitney () juno ! com
Date:       1999-04-28 13:56:42
[Download RAW message or body]

If you get this, it works. :-)

Lawson

On Wed, 28 Apr 1999, Ove Kaaven wrote:

> 
> Well, comm_outbuf() is supposed to return how much data is in the
outqueue
> total, and bleft is supposed to be how much of it can be written in one
> operation, so that's not the right patch, but I think this should be it
> (sorry for not getting it right in the first place):
> 
> ChangeLog:
> 	Fixed off-by-one bug in async output buffers.
> 
> Index: wine/misc/comm.c
> ===================================================================
> RCS file: /home/wine/wine/misc/comm.c,v
> retrieving revision 1.16
> diff -u -r1.16 comm.c
> --- wine/misc/comm.c	1999/04/19 14:56:39	1.16
> +++ wine/misc/comm.c	1999/04/28 12:41:18
> @@ -270,7 +270,7 @@
>    /* write from output queue */
>    prev = comm_outbuf(ptr);
>    do {
> -    bleft = ((ptr->obuf_tail < ptr->obuf_head) ? ptr->obuf_head :
> ptr->obuf_size)
> +    bleft = ((ptr->obuf_tail <= ptr->obuf_head) ? ptr->obuf_head :
> ptr->obuf_size)
>        - ptr->obuf_tail;
>      len = bleft ? write(fd, ptr->outbuf + ptr->obuf_tail, bleft) : 0;
>      if (len > 0) {
> 





___________________________________________________________________
You don't need to buy Internet access to use free Internet e-mail.
Get completely free e-mail from Juno at http://www.juno.com/getjuno.html
or call Juno at (800) 654-JUNO [654-5866]


=========================================================================

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic