Andrey Yastrebov <menone7@gmail.com>
- Fix app uninstallation feature (wrong lparam usage - it's pointer to PINSTALLED_INFO and not an hkey).
See issue #4961 for more details.

svn path=/trunk/; revision=44225
This commit is contained in:
Aleksey Bragin 2009-11-18 14:37:31 +00:00
parent b5a0cbacfb
commit f0fa2f117f

View file

@ -89,6 +89,7 @@ UninstallApplication(INT Index, BOOL bModify)
INT ItemIndex; INT ItemIndex;
LVITEM Item; LVITEM Item;
HKEY hKey; HKEY hKey;
PINSTALLED_INFO ItemInfo;
if (!IS_INSTALLED_ENUM(SelectedEnumType)) if (!IS_INSTALLED_ENUM(SelectedEnumType))
return FALSE; return FALSE;
@ -114,7 +115,8 @@ UninstallApplication(INT Index, BOOL bModify)
if (!ListView_GetItem(hListView, &Item)) if (!ListView_GetItem(hListView, &Item))
return FALSE; return FALSE;
hKey = (HKEY)Item.lParam; ItemInfo = (PINSTALLED_INFO)Item.lParam;
hKey = ItemInfo->hSubKey;
dwType = REG_SZ; dwType = REG_SZ;
dwSize = MAX_PATH; dwSize = MAX_PATH;