Zac Brown zac@zacbrown.org writes:
- SetLastError(0xdeadbeef); ret = HttpSendRequest(request, NULL, 0, NULL, 0); ok(ret, "HttpSendRequest failed: %u\n", GetLastError());
- ok(GetLastError() == ERROR_FILE_NOT_FOUND ||
GetLastError() == ERROR_SUCCESS,
ok(InternetCloseHandle(request), "Close request handle failed\n");"HttpSendRequest failed, got %u.\n", GetLastError());
Testing last error on success is not useful, unless it's explicitly specified that last error is set, or there is an app that depends on it.