diff --git a/reactos/base/applications/rapps/installed.c b/reactos/base/applications/rapps/installed.c index 80991c91df7..8c8cb33f172 100644 --- a/reactos/base/applications/rapps/installed.c +++ b/reactos/base/applications/rapps/installed.c @@ -89,6 +89,7 @@ UninstallApplication(INT Index, BOOL bModify) INT ItemIndex; LVITEM Item; HKEY hKey; + PINSTALLED_INFO ItemInfo; if (!IS_INSTALLED_ENUM(SelectedEnumType)) return FALSE; @@ -114,7 +115,8 @@ UninstallApplication(INT Index, BOOL bModify) 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;