Paul Vriens : winhttp: Fix a crash on Vista and higher.

Alexandre Julliard julliard at winehq.org
Thu Jul 16 11:58:41 CDT 2009


Module: wine
Branch: master
Commit: 4e370f74f789164aa207e3fe0536fb8aeefde069
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=4e370f74f789164aa207e3fe0536fb8aeefde069

Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date:   Thu Jul 16 15:47:38 2009 +0200

winhttp: Fix a crash on Vista and higher.

---

 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;




More information about the wine-cvs mailing list