[PATCH] wininet: Fix negated check for drain_content result (clang)
André Hentschel
nerv at dawncrow.de
Wed Mar 28 12:50:06 CDT 2018
Introduced with 4f40039cd785c916cd25e5e9b4a0c75dab53a50a
Signed-off-by: André Hentschel <nerv at dawncrow.de>
---
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 d77e528..f28f7c5 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);
}
--
2.7.4
More information about the wine-devel
mailing list