Commit 26bbf072 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

wininet: Change read_buf type to BYTE.

parent d1d1da35
...@@ -1697,7 +1697,7 @@ static BOOL read_line( WININETHTTPREQW *req, LPSTR buffer, DWORD *len ) ...@@ -1697,7 +1697,7 @@ static BOOL read_line( WININETHTTPREQW *req, LPSTR buffer, DWORD *len )
EnterCriticalSection( &req->read_section ); EnterCriticalSection( &req->read_section );
for (;;) for (;;)
{ {
char *eol = memchr( req->read_buf + req->read_pos, '\n', req->read_size ); BYTE *eol = memchr( req->read_buf + req->read_pos, '\n', req->read_size );
if (eol) if (eol)
{ {
...@@ -1737,7 +1737,7 @@ static BOOL discard_eol( WININETHTTPREQW *req ) ...@@ -1737,7 +1737,7 @@ static BOOL discard_eol( WININETHTTPREQW *req )
{ {
do do
{ {
char *eol = memchr( req->read_buf + req->read_pos, '\n', req->read_size ); BYTE *eol = memchr( req->read_buf + req->read_pos, '\n', req->read_size );
if (eol) if (eol)
{ {
remove_data( req, (eol + 1) - (req->read_buf + req->read_pos) ); remove_data( req, (eol + 1) - (req->read_buf + req->read_pos) );
......
...@@ -208,7 +208,7 @@ typedef struct ...@@ -208,7 +208,7 @@ typedef struct
BOOL read_chunked; /* are we reading in chunked mode? */ BOOL read_chunked; /* are we reading in chunked mode? */
DWORD read_pos; /* current read position in read_buf */ DWORD read_pos; /* current read position in read_buf */
DWORD read_size; /* valid data size in read_buf */ DWORD read_size; /* valid data size in read_buf */
char read_buf[4096]; /* buffer for already read but not returned data */ BYTE read_buf[4096]; /* buffer for already read but not returned data */
} WININETHTTPREQW, *LPWININETHTTPREQW; } WININETHTTPREQW, *LPWININETHTTPREQW;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment