[PATCH] Fix a test failure on some W2K/XP systems

Paul Vriens Paul.Vriens.Wine at gmail.com
Wed Jul 22 05:06:41 CDT 2009


---
 dlls/winhttp/tests/winhttp.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/winhttp/tests/winhttp.c b/dlls/winhttp/tests/winhttp.c
index bce91fe..0b0be59 100644
--- a/dlls/winhttp/tests/winhttp.c
+++ b/dlls/winhttp/tests/winhttp.c
@@ -939,7 +939,8 @@ static void test_set_default_proxy_config(void)
     info.lpszProxy = wideString;
     SetLastError(0xdeadbeef);
     ret = WinHttpSetDefaultProxyConfiguration(&info);
-    ok(!ret && GetLastError() == ERROR_INVALID_PARAMETER,
+    ok((!ret && GetLastError() == ERROR_INVALID_PARAMETER) ||
+        broken(ret), /* Earlier winhttp versions on W2K/XP */
         "expected ERROR_INVALID_PARAMETER, got %d\n", GetLastError());
 
     info.lpszProxy = normalString;
-- 
1.6.0.6


--------------040005090105070707020604--



More information about the wine-patches mailing list