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;
|
||||
DWORD error;
|
||||
|
||||
if (0) /* crashes on some win2k systems */
|
||||
{
|
||||
SetLastError(0xdeadbeef);
|
||||
ret = WinHttpDetectAutoProxyConfigUrl( 0, NULL );
|
||||
error = GetLastError();
|
||||
ok( !ret, "expected failure\n" );
|
||||
ok( error == ERROR_INVALID_PARAMETER, "got %u\n", error );
|
||||
|
||||
}
|
||||
url = NULL;
|
||||
SetLastError(0xdeadbeef);
|
||||
ret = WinHttpDetectAutoProxyConfigUrl( 0, &url );
|
||||
|
@ -2537,12 +2539,14 @@ static void test_WinHttpDetectAutoProxyConfigUrl(void)
|
|||
ok( !ret, "expected failure\n" );
|
||||
ok( error == ERROR_INVALID_PARAMETER, "got %u\n", error );
|
||||
|
||||
if (0) /* crashes on some win2k systems */
|
||||
{
|
||||
SetLastError(0xdeadbeef);
|
||||
ret = WinHttpDetectAutoProxyConfigUrl( WINHTTP_AUTO_DETECT_TYPE_DNS_A, NULL );
|
||||
error = GetLastError();
|
||||
ok( !ret, "expected failure\n" );
|
||||
ok( error == ERROR_INVALID_PARAMETER, "got %u\n", error );
|
||||
|
||||
}
|
||||
url = NULL;
|
||||
SetLastError(0xdeadbeef);
|
||||
ret = WinHttpDetectAutoProxyConfigUrl( WINHTTP_AUTO_DETECT_TYPE_DNS_A, &url );
|
||||
|
|
Loading…
Reference in New Issue