mirror of
https://github.com/reactos/reactos.git
synced 2025-01-22 11:33:39 +08: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
@ -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 New Issue
Block a user