wininet: Make sure we pass strictly 0/1 to a helper as BOOL value.

This commit is contained in:
Nikolay Sivov 2015-05-13 17:55:27 +03:00 committed by Alexandre Julliard
parent f920dfd698
commit b2cb6b3e26
1 changed files with 2 additions and 2 deletions

View File

@ -3565,7 +3565,7 @@ static DWORD HTTP_HttpQueryInfoW(http_request_t *request, DWORD dwInfoLevel,
LPVOID lpBuffer, LPDWORD lpdwBufferLength, LPDWORD lpdwIndex)
{
LPHTTPHEADERW lphttpHdr = NULL;
BOOL request_only = dwInfoLevel & HTTP_QUERY_FLAG_REQUEST_HEADERS;
BOOL request_only = !!(dwInfoLevel & HTTP_QUERY_FLAG_REQUEST_HEADERS);
INT requested_index = lpdwIndex ? *lpdwIndex : 0;
DWORD level = (dwInfoLevel & ~HTTP_QUERY_MODIFIER_FLAGS_MASK);
INT index = -1;
@ -6102,7 +6102,7 @@ static DWORD HTTP_ProcessHeader(http_request_t *request, LPCWSTR field, LPCWSTR
{
LPHTTPHEADERW lphttpHdr = NULL;
INT index;
BOOL request_only = dwModifier & HTTP_ADDHDR_FLAG_REQ;
BOOL request_only = !!(dwModifier & HTTP_ADDHDR_FLAG_REQ);
DWORD res = ERROR_HTTP_INVALID_HEADER;
TRACE("--> %s: %s - 0x%08x\n", debugstr_w(field), debugstr_w(value), dwModifier);