Jacek Caban : wininet: Properly clean up in InternetGetCookieExW if no cookies were found.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Sep 18 14:26:08 CDT 2014


Module: wine
Branch: master
Commit: 1f12306144aad4c550be9a6d700dd605c88b56fd
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=1f12306144aad4c550be9a6d700dd605c88b56fd

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Thu Sep 18 13:01:36 2014 +0200

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 aec3edd..d2fbec3 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);




More information about the wine-cvs mailing list