wininet: Added missing LeaveCriticalSection to set_cookie (coverity).

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2016-05-29 19:19:26 +02:00 committed by Alexandre Julliard
parent 9a85a84765
commit 0fdba71bed
1 changed files with 1 additions and 0 deletions

View File

@ -1003,6 +1003,7 @@ DWORD set_cookie(substr_t domain, substr_t path, substr_t name, substr_t data, D
if ((thisCookie->flags & INTERNET_COOKIE_HTTPONLY) && !(flags & INTERNET_COOKIE_HTTPONLY)) {
WARN("An attempt to override httponly cookie\n");
SetLastError(ERROR_INVALID_OPERATION);
LeaveCriticalSection(&cookie_cs);
return COOKIE_STATE_REJECT;
}