Module: wine Branch: master Commit: f8470fe408f70bbe3ef67911d6fb0a4adcac23cd URL: http://source.winehq.org/git/wine.git/?a=commit;h=f8470fe408f70bbe3ef67911d6...
Author: Paul Vriens Paul.Vriens.Wine@gmail.com Date: Sat May 8 11:39:51 2010 +0200
winhttp/tests: Show the correct error.
---
dlls/winhttp/tests/winhttp.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/winhttp/tests/winhttp.c b/dlls/winhttp/tests/winhttp.c index bf2db07..26477ee 100644 --- a/dlls/winhttp/tests/winhttp.c +++ b/dlls/winhttp/tests/winhttp.c @@ -1654,7 +1654,8 @@ static void test_resolve_timeout(void) SetLastError(0xdeadbeef); ret = WinHttpSendRequest(req, NULL, 0, NULL, 0, 0, 0); ok(!ret, "sent request\n"); - ok(GetLastError() == ERROR_WINHTTP_NAME_NOT_RESOLVED, "expected ERROR_WINHTTP_NAME_NOT_RESOLVED got %u\n", ret); + ok(GetLastError() == ERROR_WINHTTP_NAME_NOT_RESOLVED, + "expected ERROR_WINHTTP_NAME_NOT_RESOLVED got %u\n", GetLastError());
WinHttpCloseHandle(req); WinHttpCloseHandle(con);