Re: wininet: Fix retrieving the raw headers
"Maarten Lankhorst" <m.b.lankhorst(a)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(a)winehq.org
participants (1)
-
Alexandre Julliard