mirror of
https://github.com/reactos/reactos.git
synced 2024-11-04 22:00:55 +00:00
[rapps]
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
This commit is contained in:
parent
b5a0cbacfb
commit
f0fa2f117f
1 changed files with 3 additions and 1 deletions
|
@ -89,6 +89,7 @@ UninstallApplication(INT Index, BOOL bModify)
|
||||||
INT ItemIndex;
|
INT ItemIndex;
|
||||||
LVITEM Item;
|
LVITEM Item;
|
||||||
HKEY hKey;
|
HKEY hKey;
|
||||||
|
PINSTALLED_INFO ItemInfo;
|
||||||
|
|
||||||
if (!IS_INSTALLED_ENUM(SelectedEnumType))
|
if (!IS_INSTALLED_ENUM(SelectedEnumType))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
@ -114,7 +115,8 @@ UninstallApplication(INT Index, BOOL bModify)
|
||||||
if (!ListView_GetItem(hListView, &Item))
|
if (!ListView_GetItem(hListView, &Item))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
hKey = (HKEY)Item.lParam;
|
ItemInfo = (PINSTALLED_INFO)Item.lParam;
|
||||||
|
hKey = ItemInfo->hSubKey;
|
||||||
|
|
||||||
dwType = REG_SZ;
|
dwType = REG_SZ;
|
||||||
dwSize = MAX_PATH;
|
dwSize = MAX_PATH;
|
||||||
|
|
Loading…
Reference in a new issue