Commit 4e370f74 authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

winhttp: Fix a crash on Vista and higher.

parent d2117c14
...@@ -905,10 +905,14 @@ static void test_set_default_proxy_config(void) ...@@ -905,10 +905,14 @@ static void test_set_default_proxy_config(void)
len = get_default_proxy_reg_value( saved_proxy_settings, len, &type ); len = get_default_proxy_reg_value( saved_proxy_settings, len, &type );
} }
if (0)
{
/* Crashes on Vista and higher */
SetLastError(0xdeadbeef); SetLastError(0xdeadbeef);
ret = WinHttpSetDefaultProxyConfiguration(NULL); ret = WinHttpSetDefaultProxyConfiguration(NULL);
ok(!ret && GetLastError() == ERROR_INVALID_PARAMETER, ok(!ret && GetLastError() == ERROR_INVALID_PARAMETER,
"expected ERROR_INVALID_PARAMETER, got %d\n", GetLastError()); "expected ERROR_INVALID_PARAMETER, got %d\n", GetLastError());
}
/* test with invalid access type */ /* test with invalid access type */
info.dwAccessType = 0xdeadbeef; info.dwAccessType = 0xdeadbeef;
......
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