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
This commit is contained in:
Francois Gouget 2023-02-19 19:32:18 +01:00 committed by Alexandre Julliard
parent 493751197d
commit 00b6ce35bf

View file

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