[ros-diffs] [fireball] 44225: [rapps] Andrey Yastrebov <menone7 at 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.

fireball at svn.reactos.org fireball at svn.reactos.org
Wed Nov 18 15:37:32 CET 2009


Author: fireball
Date: Wed Nov 18 15:37:31 2009
New Revision: 44225

URL: http://svn.reactos.org/svn/reactos?rev=44225&view=rev
Log:
[rapps]
Andrey Yastrebov <menone7 at 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.

Modified:
    trunk/reactos/base/applications/rapps/installed.c

Modified: trunk/reactos/base/applications/rapps/installed.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/rapps/installed.c?rev=44225&r1=44224&r2=44225&view=diff
==============================================================================
--- trunk/reactos/base/applications/rapps/installed.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/rapps/installed.c [iso-8859-1] Wed Nov 18 15:37:31 2009
@@ -89,6 +89,7 @@
     INT ItemIndex;
     LVITEM Item;
     HKEY hKey;
+    PINSTALLED_INFO ItemInfo;
 
     if (!IS_INSTALLED_ENUM(SelectedEnumType))
         return FALSE;
@@ -114,7 +115,8 @@
     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;




More information about the Ros-diffs mailing list