From: Jacek Caban Subject: wininet: Properly clean up in InternetGetCookieExW if no cookies were found. Message-Id: <541ABB90.2090300@codeweavers.com> Date: Thu, 18 Sep 2014 13:01:36 +0200 --- dlls/wininet/cookie.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wininet/cookie.c b/dlls/wininet/cookie.c index be45ddc..05121ff 100644 --- a/dlls/wininet/cookie.c +++ b/dlls/wininet/cookie.c @@ -797,7 +797,7 @@ BOOL WINAPI InternetGetCookieExW(LPCWSTR lpszUrl, LPCWSTR lpszCookieName, }else { TRACE("no cookies found for %s\n", debugstr_w(host)); SetLastError(ERROR_NO_MORE_ITEMS); - return FALSE; + ret = FALSE; } heap_free(cookie_set.cookies);