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

This commit is contained in:
Jacek Caban 2014-09-18 13:01:36 +02:00 committed by Alexandre Julliard
parent f50e543c7a
commit 1f12306144
1 changed files with 1 additions and 1 deletions

View File

@ -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);