From f0fa2f117f563812b89c6281e224145fe6a151c2 Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Wed, 18 Nov 2009 14:37:31 +0000 Subject: [PATCH] [rapps] Andrey Yastrebov - 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 --- reactos/base/applications/rapps/installed.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.17.1