[SHELL32]

* Fix a memory leak.

svn path=/trunk/; revision=53935
This commit is contained in:
Amine Khaldi 2011-10-02 19:18:03 +00:00
parent 7e49366011
commit 5a9d7acea1

View file

@ -237,7 +237,10 @@ InsertFileType(HWND hDlgCtrl, WCHAR * szName, PINT iItem, WCHAR * szFile)
/* open key */
if (RegOpenKeyExW(HKEY_CLASSES_ROOT, szName, 0, KEY_READ, &hKey) != ERROR_SUCCESS)
{
HeapFree(GetProcessHeap(), 0, Entry);
return;
}
/* FIXME check for duplicates */