Commit 00b6ce35 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

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
parent 49375119
...@@ -49,6 +49,11 @@ static void test_InternetInitializeAutoProxyDll(void) ...@@ -49,6 +49,11 @@ static void test_InternetInitializeAutoProxyDll(void)
ret = pInternetInitializeAutoProxyDll( 0, NULL, NULL, NULL, &buf ); ret = pInternetInitializeAutoProxyDll( 0, NULL, NULL, NULL, &buf );
err = GetLastError(); err = GetLastError();
ok( !ret, "unexpected success\n" ); 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 ); ok( err == ERROR_INVALID_PARAMETER, "got %lu\n", err );
buf.dwScriptBufferSize = strlen(script) + 1; buf.dwScriptBufferSize = strlen(script) + 1;
...@@ -105,6 +110,11 @@ static void test_InternetGetProxyInfo(void) ...@@ -105,6 +110,11 @@ static void test_InternetGetProxyInfo(void)
SetLastError( 0xdeadbeef ); SetLastError( 0xdeadbeef );
ret = pInternetGetProxyInfo( url, strlen(url), host, strlen(host), &proxy, &len ); ret = pInternetGetProxyInfo( url, strlen(url), host, strlen(host), &proxy, &len );
err = GetLastError(); err = GetLastError();
if (!ret && err == 0xdeadbeef)
{
win_skip("InternetGetProxyInfo() is not supported on Windows 11\n");
return;
}
ok( !ret, "unexpected success\n" ); ok( !ret, "unexpected success\n" );
ok( err == ERROR_CAN_NOT_COMPLETE, "got %lu\n", err ); ok( err == ERROR_CAN_NOT_COMPLETE, "got %lu\n", err );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment