wininet: Added support for undocumented InternetSetOption(99) call.
This commit is contained in:
parent
c3eec8dc57
commit
d8b5f468ab
|
@ -2190,6 +2190,15 @@ static DWORD HTTPREQ_SetOption(object_header_t *hdr, DWORD option, void *buffer,
|
||||||
http_request_t *req = (http_request_t*)hdr;
|
http_request_t *req = (http_request_t*)hdr;
|
||||||
|
|
||||||
switch(option) {
|
switch(option) {
|
||||||
|
case 99: /* Undocumented, seems to be INTERNET_OPTION_SECURITY_FLAGS with argument validation */
|
||||||
|
TRACE("Undocumented option 99\n");
|
||||||
|
|
||||||
|
if (!buffer || size != sizeof(DWORD))
|
||||||
|
return ERROR_INVALID_PARAMETER;
|
||||||
|
if(*(DWORD*)buffer & ~SECURITY_SET_MASK)
|
||||||
|
return ERROR_INTERNET_OPTION_NOT_SETTABLE;
|
||||||
|
|
||||||
|
/* fall through */
|
||||||
case INTERNET_OPTION_SECURITY_FLAGS:
|
case INTERNET_OPTION_SECURITY_FLAGS:
|
||||||
{
|
{
|
||||||
DWORD flags;
|
DWORD flags;
|
||||||
|
|
Loading…
Reference in New Issue