From 86eb9c24f14b3e44739ee8102c840ec9ccc77e60 Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Mon, 24 Jan 2011 15:22:31 +0100 Subject: [PATCH] wininet/tests: Trace errors from InternetReadFile in test_basic_request. --- dlls/wininet/tests/http.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/wininet/tests/http.c b/dlls/wininet/tests/http.c index 8b4da71a616..4bced99e684 100644 --- a/dlls/wininet/tests/http.c +++ b/dlls/wininet/tests/http.c @@ -1823,8 +1823,9 @@ static void test_basic_request(int port, const char *verb, const char *url) count = 0; memset(buffer, 0, sizeof buffer); + SetLastError(0xdeadbeef); 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(!memcmp(buffer, page1, sizeof page1), "http data wrong\n");