Author: akhaldi
Date: Sun Jul 3 11:21:35 2016
New Revision: 71778
URL:
http://svn.reactos.org/svn/reactos?rev=71778&view=rev
Log:
[WINHTTP_WINETEST] Sync with Wine Staging 1.9.11. CORE-11368
Modified:
trunk/rostests/winetests/winhttp/winhttp.c
Modified: trunk/rostests/winetests/winhttp/winhttp.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/winhttp/winhttp…
==============================================================================
--- trunk/rostests/winetests/winhttp/winhttp.c [iso-8859-1] (original)
+++ trunk/rostests/winetests/winhttp/winhttp.c [iso-8859-1] Sun Jul 3 11:21:35 2016
@@ -1011,11 +1011,13 @@
ok(ret, "failed to send request %u\n", GetLastError());
ret = WinHttpReceiveResponse(req, NULL);
- ok(!ret || proxy_active(), "succeeded unexpectedly\n");
-
- size = 0;
- ret = WinHttpQueryHeaders(req, WINHTTP_QUERY_RAW_HEADERS_CRLF, NULL, NULL, &size,
NULL);
- ok(!ret, "succeeded unexpectedly\n");
+ ok(ret, "failed to receive response %u\n", GetLastError());
+
+ status = 0xdeadbeef;
+ size = sizeof(status);
+ ret = WinHttpQueryHeaders(req, WINHTTP_QUERY_STATUS_CODE|WINHTTP_QUERY_FLAG_NUMBER,
NULL, &status, &size, NULL);
+ ok(ret, "header query failed %u\n", GetLastError());
+ ok(status == HTTP_STATUS_BAD_REQUEST, "got %u\n", status);
WinHttpCloseHandle(req);