Commit be002fd9 authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

wininet: Fix negated check for drain_content result (clang).

Introduced with 4f40039cSigned-off-by: 's avatarAndré Hentschel <nerv@dawncrow.de> Signed-off-by: 's avatarJacek Caban <jacek@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 01e278a3
......@@ -5091,7 +5091,8 @@ static DWORD HTTP_HttpSendRequestW(http_request_t *request, LPCWSTR lpszHeaders,
request->session->password, host))
{
heap_free(requestString);
if(!drain_content(request, TRUE) == ERROR_SUCCESS) {
if (drain_content(request, TRUE) != ERROR_SUCCESS)
{
FIXME("Could not drain content\n");
http_release_netconn(request, FALSE);
}
......@@ -5119,7 +5120,8 @@ static DWORD HTTP_HttpSendRequestW(http_request_t *request, LPCWSTR lpszHeaders,
NULL))
{
heap_free(requestString);
if(!drain_content(request, TRUE) == ERROR_SUCCESS) {
if (drain_content(request, TRUE) != ERROR_SUCCESS)
{
FIXME("Could not drain content\n");
http_release_netconn(request, FALSE);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment