Commit 9aac2fcf authored by Misha Koshelev's avatar Misha Koshelev Committed by Alexandre Julliard

wininet/tests: Test that for an open HTTP connection InternetQueryDataAvailable…

wininet/tests: Test that for an open HTTP connection InternetQueryDataAvailable succeeds or returns ERROR_IO_PENDING.
parent 6ea2441f
......@@ -397,7 +397,9 @@ static void InternetReadFile_test(int flags)
if (flags & INTERNET_FLAG_ASYNC)
SET_EXPECT(INTERNET_STATUS_REQUEST_COMPLETE);
rc = InternetQueryDataAvailable(hor,&length,0x0,0x0);
ok(!(rc == 0 && length != 0),"InternetQueryDataAvailable failed\n");
ok(!(rc == 0 && length != 0),"InternetQueryDataAvailable failed with non-zero length\n");
ok(rc != 0 || ((flags & INTERNET_FLAG_ASYNC) && GetLastError() == ERROR_IO_PENDING),
"InternetQueryDataAvailable failed, error %d\n", GetLastError());
if (flags & INTERNET_FLAG_ASYNC)
{
if (rc != 0)
......
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