mirror of
https://github.com/reactos/reactos.git
synced 2025-01-10 16:18:16 +00:00
[SHELL32]
* Fix a memory leak. svn path=/trunk/; revision=53935
This commit is contained in:
parent
7e49366011
commit
5a9d7acea1
1 changed files with 3 additions and 0 deletions
|
@ -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 */
|
||||
|
||||
|
|
Loading…
Reference in a new issue