Module: wine Branch: master Commit: 0133683c46bea6f1d22dbb4c66b8d95442abd6ee URL: http://source.winehq.org/git/wine.git/?a=commit;h=0133683c46bea6f1d22dbb4c66...
Author: Jacek Caban jacek@codeweavers.com Date: Mon Jun 4 18:01:19 2012 +0200
wininet: Added support for undocumented InternetQueryOption(98).
---
dlls/wininet/http.c | 3 +++ dlls/wininet/tests/http.c | 7 +++++++ 2 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c index 54ac0d5..b123283 100644 --- a/dlls/wininet/http.c +++ b/dlls/wininet/http.c @@ -1987,6 +1987,9 @@ static DWORD HTTPREQ_QueryOption(object_header_t *hdr, DWORD option, void *buffe return ERROR_SUCCESS; }
+ case 98: + TRACE("Queried undocumented option 98, forwarding to INTERNET_OPTION_SECURITY_FLAGS\n"); + /* fall through */ case INTERNET_OPTION_SECURITY_FLAGS: { DWORD flags; diff --git a/dlls/wininet/tests/http.c b/dlls/wininet/tests/http.c index 204c5b7..fbb7ab6 100644 --- a/dlls/wininet/tests/http.c +++ b/dlls/wininet/tests/http.c @@ -2928,6 +2928,13 @@ static void _test_secflags_option(unsigned line, HINTERNET req, DWORD ex_flags) res = InternetQueryOptionW(req, INTERNET_OPTION_SECURITY_FLAGS, &flags, &size); ok_(__FILE__,line)(res, "InternetQueryOptionW(INTERNET_OPTION_SECURITY_FLAGS) failed: %u\n", GetLastError()); ok_(__FILE__,line)(flags == ex_flags, "INTERNET_OPTION_SECURITY_FLAGS flags = %x, expected %x\n", flags, ex_flags); + + /* Option 98 is undocumented and seems to be the same as INTERNET_OPTION_SECURITY_FLAGS */ + flags = 0xdeadbeef; + size = sizeof(flags); + res = InternetQueryOptionW(req, 98, &flags, &size); + ok_(__FILE__,line)(res, "InternetQueryOptionW(INTERNET_OPTION_SECURITY_FLAGS) failed: %u\n", GetLastError()); + ok_(__FILE__,line)(flags == ex_flags, "INTERNET_OPTION_SECURITY_FLAGS flags = %x, expected %x\n", flags, ex_flags); }
#define set_secflags(a,b) _set_secflags(__LINE__,a,b)