mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[RAPPS] Fix of unhandled exception when trying to modify/uninstall without selection (#3185)
CORE-17279
This commit is contained in:
parent
a27f0debca
commit
579f501215
1 changed files with 5 additions and 0 deletions
|
@ -278,6 +278,9 @@ BOOL CMainWindow::RemoveSelectedAppFromRegistry()
|
|||
if (MessageBoxW(szMsgText, szMsgTitle, MB_YESNO | MB_ICONQUESTION) == IDYES)
|
||||
{
|
||||
CInstalledApplicationInfo *InstalledApp = (CInstalledApplicationInfo *)m_ApplicationView->GetFocusedItemData();
|
||||
if (!InstalledApp)
|
||||
return FALSE;
|
||||
|
||||
LSTATUS Result = InstalledApp->RemoveFromRegistry();
|
||||
if (Result != ERROR_SUCCESS)
|
||||
{
|
||||
|
@ -299,6 +302,8 @@ BOOL CMainWindow::UninstallSelectedApp(BOOL bModify)
|
|||
return FALSE;
|
||||
|
||||
CInstalledApplicationInfo *InstalledApp = (CInstalledApplicationInfo *)m_ApplicationView->GetFocusedItemData();
|
||||
if (!InstalledApp)
|
||||
return FALSE;
|
||||
|
||||
return InstalledApp->UninstallApplication(bModify);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue