winhttp/tests: Show the correct error.

This commit is contained in:
Paul Vriens 2010-05-08 11:39:51 +02:00 committed by Alexandre Julliard
parent 421a997085
commit f8470fe408
1 changed files with 2 additions and 1 deletions

View File

@ -1654,7 +1654,8 @@ static void test_resolve_timeout(void)
SetLastError(0xdeadbeef); SetLastError(0xdeadbeef);
ret = WinHttpSendRequest(req, NULL, 0, NULL, 0, 0, 0); ret = WinHttpSendRequest(req, NULL, 0, NULL, 0, 0, 0);
ok(!ret, "sent request\n"); 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(req);
WinHttpCloseHandle(con); WinHttpCloseHandle(con);