Re: Wininet Buffer Length Fixes

2004-07-13 Thread Alexandre Julliard
Robert Shearman <[EMAIL PROTECTED]> writes: > In the case of a string, the byte count does not include the string's > terminating null character. > > Since WideCharToMultiByte returns the number of bytes written > including the null terminator it is required to take one away from it, > although th

Re: Wininet Buffer Length Fixes

2004-07-13 Thread Robert Shearman
Alexandre Julliard wrote: Robert Shearman <[EMAIL PROTECTED]> writes: --- wine/dlls/wininet/http.c 4 Jul 2004 00:24:47 - 1.65 +++ wine/dlls/wininet/http.c 13 Jul 2004 16:23:11 - @@ -1131,8 +1186,8 @@ if( result ) { len = WideCharToMultiByte( CP_ACP,0, bufferW, len / sizeo

Re: Wininet Buffer Length Fixes

2004-07-13 Thread Alexandre Julliard
Robert Shearman <[EMAIL PROTECTED]> writes: > --- wine/dlls/wininet/http.c 4 Jul 2004 00:24:47 - 1.65 > +++ wine/dlls/wininet/http.c 13 Jul 2004 16:23:11 - > @@ -1131,8 +1186,8 @@ > if( result ) > { > len = WideCharToMultiByte( CP_ACP,0, bufferW, len / sizeof(WCH