wininet: Fix retrieving the raw headers

Alexandre Julliard julliard at winehq.org
Tue Feb 26 04:29:39 CST 2008


"Maarten Lankhorst" <m.b.lankhorst at gmail.com> writes:

> @@ -3059,12 +3060,14 @@ static INT HTTP_GetResponseHeaders(LPWININETHTTPREQW lpwhr)
>           * We should first receive 'HTTP/1.x nnn OK' where nnn is the status code.
>           */
>          memset(buffer, 0, MAX_REPLY_LEN);
> +        memset(buffertoken, 0, MAX_REPLY_LEN);
>          if (!NETCON_getNextLine(&lpwhr->netConnection, bufferA, &buflen))
>              goto lend;
>          MultiByteToWideChar( CP_ACP, 0, bufferA, buflen, buffer, MAX_REPLY_LEN );
> +        MultiByteToWideChar( CP_ACP, 0, bufferA, buflen, buffertoken, MAX_REPLY_LEN );

That's ugly, it shouldn't be necessary to have two copies of the whole
data just to parse some status codes.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list