Commit 86eb9c24 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

wininet/tests: Trace errors from InternetReadFile in test_basic_request.

parent 92203f10
...@@ -1823,8 +1823,9 @@ static void test_basic_request(int port, const char *verb, const char *url) ...@@ -1823,8 +1823,9 @@ static void test_basic_request(int port, const char *verb, const char *url)
count = 0; count = 0;
memset(buffer, 0, sizeof buffer); memset(buffer, 0, sizeof buffer);
SetLastError(0xdeadbeef);
r = InternetReadFile(hr, buffer, sizeof buffer, &count); r = InternetReadFile(hr, buffer, sizeof buffer, &count);
ok(r, "InternetReadFile failed\n"); ok(r, "InternetReadFile failed %u\n", GetLastError());
ok(count == sizeof page1 - 1, "count was wrong\n"); ok(count == sizeof page1 - 1, "count was wrong\n");
ok(!memcmp(buffer, page1, sizeof page1), "http data wrong\n"); ok(!memcmp(buffer, page1, sizeof page1), "http data wrong\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