Hans Leidekker : winhttp/tests: Avoid crashes on some win2k systems.
Alexandre Julliard
julliard at winehq.org
Mon Dec 19 13:39:23 CST 2011
Module: wine
Branch: master
Commit: 3a204f50ae3d0f49d145597f94cc318f0f57c94d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=3a204f50ae3d0f49d145597f94cc318f0f57c94d
Author: Hans Leidekker <hans at codeweavers.com>
Date: Mon Dec 19 15:41:21 2011 +0100
winhttp/tests: Avoid crashes on some win2k systems.
---
dlls/winhttp/tests/winhttp.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/dlls/winhttp/tests/winhttp.c b/dlls/winhttp/tests/winhttp.c
index 0155539..cf4ad92 100644
--- a/dlls/winhttp/tests/winhttp.c
+++ b/dlls/winhttp/tests/winhttp.c
@@ -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 );
More information about the wine-cvs
mailing list