mirror of
https://github.com/reactos/reactos.git
synced 2025-07-12 17:44:12 +00:00
fix downloader!
svn path=/trunk/; revision=31673
This commit is contained in:
parent
ab7e8a8834
commit
fe7958aa0b
1 changed files with 7 additions and 1 deletions
|
@ -3027,8 +3027,11 @@ static INT HTTP_GetResponseHeaders(LPWININETHTTPREQW lpwhr)
|
||||||
/*
|
/*
|
||||||
* HACK peek at the buffer
|
* HACK peek at the buffer
|
||||||
*/
|
*/
|
||||||
|
#if 0
|
||||||
|
/* This is Wine code, we don't support MSG_PEEK yet so we have to do it
|
||||||
|
a bit different */
|
||||||
NETCON_recv(&lpwhr->netConnection, buffer, buflen, MSG_PEEK, &rc);
|
NETCON_recv(&lpwhr->netConnection, buffer, buflen, MSG_PEEK, &rc);
|
||||||
|
#endif
|
||||||
/*
|
/*
|
||||||
* We should first receive 'HTTP/1.x nnn OK' where nnn is the status code.
|
* We should first receive 'HTTP/1.x nnn OK' where nnn is the status code.
|
||||||
*/
|
*/
|
||||||
|
@ -3036,6 +3039,9 @@ static INT HTTP_GetResponseHeaders(LPWININETHTTPREQW lpwhr)
|
||||||
memset(buffer, 0, MAX_REPLY_LEN);
|
memset(buffer, 0, MAX_REPLY_LEN);
|
||||||
if (!NETCON_getNextLine(&lpwhr->netConnection, bufferA, &buflen))
|
if (!NETCON_getNextLine(&lpwhr->netConnection, bufferA, &buflen))
|
||||||
goto lend;
|
goto lend;
|
||||||
|
#if 1
|
||||||
|
rc = buflen;
|
||||||
|
#endif
|
||||||
MultiByteToWideChar( CP_ACP, 0, bufferA, buflen, buffer, MAX_REPLY_LEN );
|
MultiByteToWideChar( CP_ACP, 0, bufferA, buflen, buffer, MAX_REPLY_LEN );
|
||||||
|
|
||||||
/* regenerate raw headers */
|
/* regenerate raw headers */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue