Index: installed.c =================================================================== --- installed.c (revision 44198) +++ installed.c (working copy) @@ -89,6 +89,7 @@ INT ItemIndex; LVITEM Item; HKEY hKey; + PINSTALLED_INFO ItemInfo; if (!IS_INSTALLED_ENUM(SelectedEnumType)) return FALSE; @@ -114,7 +115,9 @@ 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;