wininet: Sign-compare warnings fix.
This commit is contained in:
parent
42a920144f
commit
bc8d8e5211
|
@ -2205,7 +2205,7 @@ static BOOL HTTP_HttpQueryInfoW( LPWININETHTTPREQW lpwhr, DWORD dwInfoLevel,
|
||||||
BOOL bSuccess = FALSE;
|
BOOL bSuccess = FALSE;
|
||||||
BOOL request_only = dwInfoLevel & HTTP_QUERY_FLAG_REQUEST_HEADERS;
|
BOOL request_only = dwInfoLevel & HTTP_QUERY_FLAG_REQUEST_HEADERS;
|
||||||
INT requested_index = lpdwIndex ? *lpdwIndex : 0;
|
INT requested_index = lpdwIndex ? *lpdwIndex : 0;
|
||||||
INT level = (dwInfoLevel & ~HTTP_QUERY_MODIFIER_FLAGS_MASK);
|
DWORD level = (dwInfoLevel & ~HTTP_QUERY_MODIFIER_FLAGS_MASK);
|
||||||
INT index = -1;
|
INT index = -1;
|
||||||
|
|
||||||
/* Find requested header structure */
|
/* Find requested header structure */
|
||||||
|
@ -2327,7 +2327,7 @@ static BOOL HTTP_HttpQueryInfoW( LPWININETHTTPREQW lpwhr, DWORD dwInfoLevel,
|
||||||
default:
|
default:
|
||||||
assert (LAST_TABLE_HEADER == (HTTP_QUERY_UNLESS_MODIFIED_SINCE + 1));
|
assert (LAST_TABLE_HEADER == (HTTP_QUERY_UNLESS_MODIFIED_SINCE + 1));
|
||||||
|
|
||||||
if (level >= 0 && level < LAST_TABLE_HEADER && header_lookup[level])
|
if (level < LAST_TABLE_HEADER && header_lookup[level])
|
||||||
index = HTTP_GetCustomHeaderIndex(lpwhr, header_lookup[level],
|
index = HTTP_GetCustomHeaderIndex(lpwhr, header_lookup[level],
|
||||||
requested_index,request_only);
|
requested_index,request_only);
|
||||||
}
|
}
|
||||||
|
|
|
@ -462,7 +462,7 @@ static void dump_INTERNET_FLAGS(DWORD dwFlags)
|
||||||
FE(INTERNET_FLAG_TRANSFER_BINARY)
|
FE(INTERNET_FLAG_TRANSFER_BINARY)
|
||||||
};
|
};
|
||||||
#undef FE
|
#undef FE
|
||||||
int i;
|
unsigned int i;
|
||||||
|
|
||||||
for (i = 0; i < (sizeof(flag) / sizeof(flag[0])); i++) {
|
for (i = 0; i < (sizeof(flag) / sizeof(flag[0])); i++) {
|
||||||
if (flag[i].val & dwFlags) {
|
if (flag[i].val & dwFlags) {
|
||||||
|
|
Loading…
Reference in New Issue