Module: wine Branch: master Commit: a5ce5d637ffee9a6410135daec0562c03ea7d558 URL: https://gitlab.winehq.org/wine/wine/-/commit/a5ce5d637ffee9a6410135daec0562c...
Author: Piotr Caban piotr@codeweavers.com Date: Sun Feb 11 15:42:08 2024 +0100
wininet/tests: Add more INTERNET_OPTION_PER_CONNECTION_OPTION tests.
---
dlls/wininet/tests/internet.c | 7 +++++++ 1 file changed, 7 insertions(+)
diff --git a/dlls/wininet/tests/internet.c b/dlls/wininet/tests/internet.c index 1475d2161ce..b1216d63de7 100644 --- a/dlls/wininet/tests/internet.c +++ b/dlls/wininet/tests/internet.c @@ -1308,6 +1308,13 @@ static void test_Option_PerConnectionOption(void) ok(ret, "HeapValidate failed, last error %lu\n", GetLastError()); GlobalFree(options[0].Value.pszValue);
+ /* verify that global proxy settings were not changed */ + ret = InternetQueryOptionW(NULL, INTERNET_OPTION_PER_CONNECTION_OPTION, &list, &size); + ok(ret, "InternetQueryOption should've succeeded\n"); + ok(lstrcmpW(options[0].Value.pszValue, proxy_srvW), + "Retrieved proxy server should've been %s, was: %s\n", + wine_dbgstr_w(proxy_srvW), wine_dbgstr_w(options[0].Value.pszValue)); + /* disable the proxy server */ list.dwOptionCount = 1; options[0].dwOption = INTERNET_PER_CONN_FLAGS;