Module: wine Branch: master Commit: 00b6ce35bf2739ad6c66dd47b41ec754d0387aaa URL: https://gitlab.winehq.org/wine/wine/-/commit/00b6ce35bf2739ad6c66dd47b41ec75...
Author: Francois Gouget fgouget@codeweavers.com Date: Sun Feb 19 19:32:18 2023 +0100
jsproxy/tests: InternetInitializeAutoProxyDll() is no longer supported on Windows 11.
The same goes for InternetGetProxyInfo(). They seem to have been replaced with stubs that fail but don't bother setting the error code. So just skip the tests when that happens.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54531
---
dlls/jsproxy/tests/jsproxy.c | 10 ++++++++++ 1 file changed, 10 insertions(+)
diff --git a/dlls/jsproxy/tests/jsproxy.c b/dlls/jsproxy/tests/jsproxy.c index 59b3c5dfb9e..22a828b7e5a 100644 --- a/dlls/jsproxy/tests/jsproxy.c +++ b/dlls/jsproxy/tests/jsproxy.c @@ -49,6 +49,11 @@ static void test_InternetInitializeAutoProxyDll(void) ret = pInternetInitializeAutoProxyDll( 0, NULL, NULL, NULL, &buf ); err = GetLastError(); ok( !ret, "unexpected success\n" ); + if (!ret && err == 0xdeadbeef) + { + win_skip("InternetInitializeAutoProxyDll() is not supported on Windows 11\n"); + return; + } ok( err == ERROR_INVALID_PARAMETER, "got %lu\n", err );
buf.dwScriptBufferSize = strlen(script) + 1; @@ -105,6 +110,11 @@ static void test_InternetGetProxyInfo(void) SetLastError( 0xdeadbeef ); ret = pInternetGetProxyInfo( url, strlen(url), host, strlen(host), &proxy, &len ); err = GetLastError(); + if (!ret && err == 0xdeadbeef) + { + win_skip("InternetGetProxyInfo() is not supported on Windows 11\n"); + return; + } ok( !ret, "unexpected success\n" ); ok( err == ERROR_CAN_NOT_COMPLETE, "got %lu\n", err );