[PATCH] Fix a crash on Vista and higher

Paul Vriens Paul.Vriens.Wine at gmail.com
Thu Jul 16 08:47:38 CDT 2009


---
 dlls/winhttp/tests/winhttp.c |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/dlls/winhttp/tests/winhttp.c b/dlls/winhttp/tests/winhttp.c
index 78c4777..bce91fe 100644
--- a/dlls/winhttp/tests/winhttp.c
+++ b/dlls/winhttp/tests/winhttp.c
@@ -905,10 +905,14 @@ static void test_set_default_proxy_config(void)
         len = get_default_proxy_reg_value( saved_proxy_settings, len, &type );
     }
 
-    SetLastError(0xdeadbeef);
-    ret = WinHttpSetDefaultProxyConfiguration(NULL);
-    ok(!ret && GetLastError() == ERROR_INVALID_PARAMETER,
-        "expected ERROR_INVALID_PARAMETER, got %d\n", GetLastError());
+    if (0)
+    {
+        /* Crashes on Vista and higher */
+        SetLastError(0xdeadbeef);
+        ret = WinHttpSetDefaultProxyConfiguration(NULL);
+        ok(!ret && GetLastError() == ERROR_INVALID_PARAMETER,
+            "expected ERROR_INVALID_PARAMETER, got %d\n", GetLastError());
+    }
 
     /* test with invalid access type */
     info.dwAccessType = 0xdeadbeef;
-- 
1.6.0.6


--------------020100020304070004010908--



More information about the wine-patches mailing list