Commit 8dbc39b4 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

wininet: Properly set flags in InternetSetOption(INTERNET_OPTION_SECURITY_FLAGS).

parent 4c7e9aa9
...@@ -2197,10 +2197,11 @@ static DWORD HTTPREQ_SetOption(object_header_t *hdr, DWORD option, void *buffer, ...@@ -2197,10 +2197,11 @@ static DWORD HTTPREQ_SetOption(object_header_t *hdr, DWORD option, void *buffer,
if (!buffer || size != sizeof(DWORD)) if (!buffer || size != sizeof(DWORD))
return ERROR_INVALID_PARAMETER; return ERROR_INVALID_PARAMETER;
flags = *(DWORD *)buffer; flags = *(DWORD *)buffer;
TRACE("%08x\n", flags); TRACE("INTERNET_OPTION_SECURITY_FLAGS %08x\n", flags);
req->security_flags = flags; flags &= SECURITY_SET_MASK;
req->security_flags |= flags;
if(req->netconn) if(req->netconn)
req->netconn->security_flags = flags; req->netconn->security_flags |= flags;
return ERROR_SUCCESS; return ERROR_SUCCESS;
} }
case INTERNET_OPTION_CONNECT_TIMEOUT: case INTERNET_OPTION_CONNECT_TIMEOUT:
......
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