Module: wine Branch: stable Commit: 0de02c6ac43c87939b06d2c5fcf2cdce918e77b4 URL: https://source.winehq.org/git/wine.git/?a=commit;h=0de02c6ac43c87939b06d2c5f...
Author: André Hentschel nerv@dawncrow.de Date: Wed Mar 28 19:50:06 2018 +0200
wininet: Fix negated check for drain_content result (clang).
Introduced with 4f40039cd785c916cd25e5e9b4a0c75dab53a50a
Signed-off-by: André Hentschel nerv@dawncrow.de Signed-off-by: Jacek Caban jacek@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org (cherry picked from commit be002fd92b9d72163bf130ab8ade8aa4d9cdbad0) Signed-off-by: Michael Stefaniuc mstefani@winehq.org
---
dlls/wininet/http.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c index b1c2d94..79f7df1 100644 --- a/dlls/wininet/http.c +++ b/dlls/wininet/http.c @@ -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); }