wininet: Fix allocation error handling (Clang)
André Hentschel
nerv at dawncrow.de
Sun Nov 29 12:53:15 CST 2015
Signed-off-by: André Hentschel <nerv at dawncrow.de>
---
dlls/wininet/cookie.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/wininet/cookie.c b/dlls/wininet/cookie.c
index 4784b33..0b7f5e1 100644
--- a/dlls/wininet/cookie.c
+++ b/dlls/wininet/cookie.c
@@ -713,7 +713,8 @@ DWORD get_cookie_header(const WCHAR *host, const WCHAR *path, WCHAR **ret)
*ret = header;
}else {
- res = ERROR_NOT_ENOUGH_MEMORY;
+ LeaveCriticalSection(&cookie_cs);
+ return ERROR_NOT_ENOUGH_MEMORY;
}
}else {
*ret = NULL;
--
1.9.1
More information about the wine-patches
mailing list