winhttp: Avoid signed-unsigned integer comparisons.
This commit is contained in:
parent
402b10013f
commit
a9983e6cd2
|
@ -568,7 +568,7 @@ static BOOL read_ssl_chunk(netconn_t *conn, void *buf, SIZE_T buf_size, SIZE_T *
|
||||||
SecBuffer bufs[4];
|
SecBuffer bufs[4];
|
||||||
SecBufferDesc buf_desc = {SECBUFFER_VERSION, sizeof(bufs)/sizeof(*bufs), bufs};
|
SecBufferDesc buf_desc = {SECBUFFER_VERSION, sizeof(bufs)/sizeof(*bufs), bufs};
|
||||||
SSIZE_T size, buf_len;
|
SSIZE_T size, buf_len;
|
||||||
int i;
|
unsigned int i;
|
||||||
SECURITY_STATUS res;
|
SECURITY_STATUS res;
|
||||||
|
|
||||||
assert(conn->extra_len < ssl_buf_size);
|
assert(conn->extra_len < ssl_buf_size);
|
||||||
|
|
|
@ -2935,9 +2935,9 @@ static HRESULT request_send( struct winhttp_request *request )
|
||||||
VariantInit( &data );
|
VariantInit( &data );
|
||||||
if (V_VT( &request->data ) == VT_BSTR)
|
if (V_VT( &request->data ) == VT_BSTR)
|
||||||
{
|
{
|
||||||
UINT i, cp = CP_ACP;
|
UINT cp = CP_ACP;
|
||||||
const WCHAR *str = V_BSTR( &request->data );
|
const WCHAR *str = V_BSTR( &request->data );
|
||||||
int len = strlenW( str );
|
int i, len = strlenW( str );
|
||||||
|
|
||||||
for (i = 0; i < len; i++)
|
for (i = 0; i < len; i++)
|
||||||
{
|
{
|
||||||
|
|
|
@ -878,7 +878,7 @@ static const object_vtbl_t request_vtbl =
|
||||||
static BOOL store_accept_types( request_t *request, const WCHAR **accept_types )
|
static BOOL store_accept_types( request_t *request, const WCHAR **accept_types )
|
||||||
{
|
{
|
||||||
const WCHAR **types = accept_types;
|
const WCHAR **types = accept_types;
|
||||||
int i;
|
DWORD i;
|
||||||
|
|
||||||
if (!types) return TRUE;
|
if (!types) return TRUE;
|
||||||
while (*types)
|
while (*types)
|
||||||
|
@ -897,7 +897,7 @@ static BOOL store_accept_types( request_t *request, const WCHAR **accept_types )
|
||||||
{
|
{
|
||||||
if (!(request->accept_types[i] = strdupW( *types )))
|
if (!(request->accept_types[i] = strdupW( *types )))
|
||||||
{
|
{
|
||||||
for (; i >= 0; i--) heap_free( request->accept_types[i] );
|
for ( ; i > 0; --i) heap_free( request->accept_types[i - 1] );
|
||||||
heap_free( request->accept_types );
|
heap_free( request->accept_types );
|
||||||
request->accept_types = NULL;
|
request->accept_types = NULL;
|
||||||
request->num_accept_types = 0;
|
request->num_accept_types = 0;
|
||||||
|
|
Loading…
Reference in New Issue