Commit 1f123061 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

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

parent f50e543c
...@@ -794,7 +794,7 @@ BOOL WINAPI InternetGetCookieExW(LPCWSTR lpszUrl, LPCWSTR lpszCookieName, ...@@ -794,7 +794,7 @@ BOOL WINAPI InternetGetCookieExW(LPCWSTR lpszUrl, LPCWSTR lpszCookieName,
}else { }else {
TRACE("no cookies found for %s\n", debugstr_w(host)); TRACE("no cookies found for %s\n", debugstr_w(host));
SetLastError(ERROR_NO_MORE_ITEMS); SetLastError(ERROR_NO_MORE_ITEMS);
return FALSE; ret = FALSE;
} }
heap_free(cookie_set.cookies); heap_free(cookie_set.cookies);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment