From 1f12306144aad4c550be9a6d700dd605c88b56fd Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Thu, 18 Sep 2014 13:01:36 +0200 Subject: [PATCH] wininet: Properly clean up in InternetGetCookieExW if no cookies were found. --- 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 aec3edd3f44..d2fbec3ee2e 100644 --- a/dlls/wininet/cookie.c +++ b/dlls/wininet/cookie.c @@ -794,7 +794,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);