wininet: Make sure we pass strictly 0/1 to a helper as BOOL value.
This commit is contained in:
parent
f920dfd698
commit
b2cb6b3e26
|
@ -3565,7 +3565,7 @@ static DWORD HTTP_HttpQueryInfoW(http_request_t *request, DWORD dwInfoLevel,
|
||||||
LPVOID lpBuffer, LPDWORD lpdwBufferLength, LPDWORD lpdwIndex)
|
LPVOID lpBuffer, LPDWORD lpdwBufferLength, LPDWORD lpdwIndex)
|
||||||
{
|
{
|
||||||
LPHTTPHEADERW lphttpHdr = NULL;
|
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;
|
INT requested_index = lpdwIndex ? *lpdwIndex : 0;
|
||||||
DWORD level = (dwInfoLevel & ~HTTP_QUERY_MODIFIER_FLAGS_MASK);
|
DWORD level = (dwInfoLevel & ~HTTP_QUERY_MODIFIER_FLAGS_MASK);
|
||||||
INT index = -1;
|
INT index = -1;
|
||||||
|
@ -6102,7 +6102,7 @@ static DWORD HTTP_ProcessHeader(http_request_t *request, LPCWSTR field, LPCWSTR
|
||||||
{
|
{
|
||||||
LPHTTPHEADERW lphttpHdr = NULL;
|
LPHTTPHEADERW lphttpHdr = NULL;
|
||||||
INT index;
|
INT index;
|
||||||
BOOL request_only = dwModifier & HTTP_ADDHDR_FLAG_REQ;
|
BOOL request_only = !!(dwModifier & HTTP_ADDHDR_FLAG_REQ);
|
||||||
DWORD res = ERROR_HTTP_INVALID_HEADER;
|
DWORD res = ERROR_HTTP_INVALID_HEADER;
|
||||||
|
|
||||||
TRACE("--> %s: %s - 0x%08x\n", debugstr_w(field), debugstr_w(value), dwModifier);
|
TRACE("--> %s: %s - 0x%08x\n", debugstr_w(field), debugstr_w(value), dwModifier);
|
||||||
|
|
Loading…
Reference in New Issue