Module: wine Branch: master Commit: d8b5f468ab4351845ff527ed04b84e9b687d482d URL: http://source.winehq.org/git/wine.git/?a=commit;h=d8b5f468ab4351845ff527ed04...
Author: Jacek Caban jacek@codeweavers.com Date: Thu Jun 7 15:40:45 2012 +0200
wininet: Added support for undocumented InternetSetOption(99) call.
---
dlls/wininet/http.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c index e263d8a..620fcf7 100644 --- a/dlls/wininet/http.c +++ b/dlls/wininet/http.c @@ -2190,6 +2190,15 @@ static DWORD HTTPREQ_SetOption(object_header_t *hdr, DWORD option, void *buffer, http_request_t *req = (http_request_t*)hdr;
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: { DWORD flags;