Commit 05396f18 authored by Ričardas Barkauskas's avatar Ričardas Barkauskas Committed by Alexandre Julliard

wininet/tests: Mark successful query of status before sending request as broken.

parent 12e6c14e
......@@ -3597,7 +3597,7 @@ static void test_response_without_headers(int port)
static void test_HttpQueryInfo(int port)
{
HINTERNET hi, hc, hr;
DWORD size, index;
DWORD size, index, error;
char buffer[1024];
BOOL ret;
......@@ -3612,7 +3612,9 @@ static void test_HttpQueryInfo(int port)
size = sizeof(buffer);
ret = HttpQueryInfoA(hr, HTTP_QUERY_STATUS_TEXT, buffer, &size, &index);
ok(!ret && GetLastError() == ERROR_HTTP_HEADER_NOT_FOUND, "HttpQueryInfo failed %u\n", GetLastError());
error = GetLastError();
ok(!ret || broken(ret), "HttpQueryInfo succeeded\n");
if (!ret) ok(error == ERROR_HTTP_HEADER_NOT_FOUND, "got %u expected ERROR_HTTP_HEADER_NOT_FOUND\n", error);
ret = HttpSendRequestA(hr, NULL, 0, NULL, 0);
ok(ret, "HttpSendRequest failed\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment