mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-02 20:03:37 +00:00
shell32: Fix missing unlock on an error path. Found by Smatch.
This commit is contained in:
parent
6c63fa627e
commit
b6ce3de8e7
|
@ -248,7 +248,11 @@ static void add_iface_to_cache(REFCLSID clsid, LPVOID pv)
|
|||
sf_cls_cache_entry = HeapReAlloc(GetProcessHeap(), 0, sf_cls_cache.sf_cls_cache_entry,
|
||||
allocated * sizeof(*sf_cls_cache_entry));
|
||||
}
|
||||
if (!sf_cls_cache_entry) return;
|
||||
if (!sf_cls_cache_entry)
|
||||
{
|
||||
LeaveCriticalSection(&SHELL32_SF_ClassCacheCS);
|
||||
return;
|
||||
}
|
||||
|
||||
sf_cls_cache.allocated = allocated;
|
||||
sf_cls_cache.sf_cls_cache_entry = sf_cls_cache_entry;
|
||||
|
|
Loading…
Reference in a new issue