wininet: Added support for undocumented InternetQueryOption(98).

oldstable
Jacek Caban 2012-06-04 18:01:19 +02:00 committed by Alexandre Julliard
parent 2aa6c460f7
commit 0133683c46
2 changed files with 10 additions and 0 deletions

View File

@ -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;

View File

@ -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)