wininet/tests: Trace errors from InternetReadFile in test_basic_request.
Hans Leidekker
hans at codeweavers.com
Mon Jan 24 08:22:31 CST 2011
---
dlls/wininet/tests/http.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/wininet/tests/http.c b/dlls/wininet/tests/http.c
index 8b4da71..4bced99 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");
--
1.7.1
More information about the wine-patches
mailing list