Jacek Caban : wininet: Added support for undocumented InternetQueryOption( 98).
Alexandre Julliard
julliard at winehq.org
Tue Jun 5 14:46:54 CDT 2012
Module: wine
Branch: master
Commit: 0133683c46bea6f1d22dbb4c66b8d95442abd6ee
URL: http://source.winehq.org/git/wine.git/?a=commit;h=0133683c46bea6f1d22dbb4c66b8d95442abd6ee
Author: Jacek Caban <jacek at 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)
More information about the wine-cvs
mailing list