Hans Leidekker : winhttp/tests: Fix a test failure on win2k.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Jun 17 10:18:11 CDT 2015


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

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Wed Jun 17 15:11:22 2015 +0200

winhttp/tests: Fix a test failure on win2k.

---

 dlls/winhttp/tests/winhttp.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/dlls/winhttp/tests/winhttp.c b/dlls/winhttp/tests/winhttp.c
index 10a3f06..8b72d08 100644
--- a/dlls/winhttp/tests/winhttp.c
+++ b/dlls/winhttp/tests/winhttp.c
@@ -942,6 +942,11 @@ static void test_request_parameter_defaults(void)
     ok(ret, "failed to send request %u\n", GetLastError());
 
     ret = WinHttpReceiveResponse(req, NULL);
+    if (!ret && GetLastError() == ERROR_WINHTTP_INVALID_SERVER_RESPONSE) /* win2k */
+    {
+        win_skip("invalid response\n");
+        goto done;
+    }
     ok(ret, "failed to receive response %u\n", GetLastError());
 
     status = 0xdeadbeef;




More information about the wine-cvs mailing list