winhttp: Fix a crash on Vista and higher.
This commit is contained in:
parent
d2117c14ba
commit
4e370f74f7
|
@ -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 );
|
||||||
}
|
}
|
||||||
|
|
||||||
SetLastError(0xdeadbeef);
|
if (0)
|
||||||
ret = WinHttpSetDefaultProxyConfiguration(NULL);
|
{
|
||||||
ok(!ret && GetLastError() == ERROR_INVALID_PARAMETER,
|
/* Crashes on Vista and higher */
|
||||||
"expected ERROR_INVALID_PARAMETER, got %d\n", GetLastError());
|
SetLastError(0xdeadbeef);
|
||||||
|
ret = WinHttpSetDefaultProxyConfiguration(NULL);
|
||||||
|
ok(!ret && GetLastError() == ERROR_INVALID_PARAMETER,
|
||||||
|
"expected ERROR_INVALID_PARAMETER, got %d\n", GetLastError());
|
||||||
|
}
|
||||||
|
|
||||||
/* test with invalid access type */
|
/* test with invalid access type */
|
||||||
info.dwAccessType = 0xdeadbeef;
|
info.dwAccessType = 0xdeadbeef;
|
||||||
|
|
Loading…
Reference in New Issue