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
INT ItemIndex;
LVITEM Item;
HKEY hKey;
+ PINSTALLED_INFO ItemInfo;
if (!IS_INSTALLED_ENUM(SelectedEnumType))
return FALSE;
if (!ListView_GetItem(hListView, &Item))
return FALSE;
- hKey = (HKEY)Item.lParam;
+ ItemInfo = (PINSTALLED_INFO)Item.lParam;
+ hKey = ItemInfo->hSubKey;
dwType = REG_SZ;
dwSize = MAX_PATH;