winhttp/tests: Avoid crashes on some win2k systems.
This commit is contained in:
parent
969f3be73f
commit
3a204f50ae
|
@ -2524,12 +2524,14 @@ static void test_WinHttpDetectAutoProxyConfigUrl(void)
|
||||||
WCHAR *url;
|
WCHAR *url;
|
||||||
DWORD error;
|
DWORD error;
|
||||||
|
|
||||||
|
if (0) /* crashes on some win2k systems */
|
||||||
|
{
|
||||||
SetLastError(0xdeadbeef);
|
SetLastError(0xdeadbeef);
|
||||||
ret = WinHttpDetectAutoProxyConfigUrl( 0, NULL );
|
ret = WinHttpDetectAutoProxyConfigUrl( 0, NULL );
|
||||||
error = GetLastError();
|
error = GetLastError();
|
||||||
ok( !ret, "expected failure\n" );
|
ok( !ret, "expected failure\n" );
|
||||||
ok( error == ERROR_INVALID_PARAMETER, "got %u\n", error );
|
ok( error == ERROR_INVALID_PARAMETER, "got %u\n", error );
|
||||||
|
}
|
||||||
url = NULL;
|
url = NULL;
|
||||||
SetLastError(0xdeadbeef);
|
SetLastError(0xdeadbeef);
|
||||||
ret = WinHttpDetectAutoProxyConfigUrl( 0, &url );
|
ret = WinHttpDetectAutoProxyConfigUrl( 0, &url );
|
||||||
|
@ -2537,12 +2539,14 @@ static void test_WinHttpDetectAutoProxyConfigUrl(void)
|
||||||
ok( !ret, "expected failure\n" );
|
ok( !ret, "expected failure\n" );
|
||||||
ok( error == ERROR_INVALID_PARAMETER, "got %u\n", error );
|
ok( error == ERROR_INVALID_PARAMETER, "got %u\n", error );
|
||||||
|
|
||||||
|
if (0) /* crashes on some win2k systems */
|
||||||
|
{
|
||||||
SetLastError(0xdeadbeef);
|
SetLastError(0xdeadbeef);
|
||||||
ret = WinHttpDetectAutoProxyConfigUrl( WINHTTP_AUTO_DETECT_TYPE_DNS_A, NULL );
|
ret = WinHttpDetectAutoProxyConfigUrl( WINHTTP_AUTO_DETECT_TYPE_DNS_A, NULL );
|
||||||
error = GetLastError();
|
error = GetLastError();
|
||||||
ok( !ret, "expected failure\n" );
|
ok( !ret, "expected failure\n" );
|
||||||
ok( error == ERROR_INVALID_PARAMETER, "got %u\n", error );
|
ok( error == ERROR_INVALID_PARAMETER, "got %u\n", error );
|
||||||
|
}
|
||||||
url = NULL;
|
url = NULL;
|
||||||
SetLastError(0xdeadbeef);
|
SetLastError(0xdeadbeef);
|
||||||
ret = WinHttpDetectAutoProxyConfigUrl( WINHTTP_AUTO_DETECT_TYPE_DNS_A, &url );
|
ret = WinHttpDetectAutoProxyConfigUrl( WINHTTP_AUTO_DETECT_TYPE_DNS_A, &url );
|
||||||
|
|
Loading…
Reference in New Issue