mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 18:16:29 +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)
|
if (MessageBoxW(szMsgText, szMsgTitle, MB_YESNO | MB_ICONQUESTION) == IDYES)
|
||||||
{
|
{
|
||||||
CInstalledApplicationInfo *InstalledApp = (CInstalledApplicationInfo *)m_ApplicationView->GetFocusedItemData();
|
CInstalledApplicationInfo *InstalledApp = (CInstalledApplicationInfo *)m_ApplicationView->GetFocusedItemData();
|
||||||
|
if (!InstalledApp)
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
LSTATUS Result = InstalledApp->RemoveFromRegistry();
|
LSTATUS Result = InstalledApp->RemoveFromRegistry();
|
||||||
if (Result != ERROR_SUCCESS)
|
if (Result != ERROR_SUCCESS)
|
||||||
{
|
{
|
||||||
|
@ -299,6 +302,8 @@ BOOL CMainWindow::UninstallSelectedApp(BOOL bModify)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
CInstalledApplicationInfo *InstalledApp = (CInstalledApplicationInfo *)m_ApplicationView->GetFocusedItemData();
|
CInstalledApplicationInfo *InstalledApp = (CInstalledApplicationInfo *)m_ApplicationView->GetFocusedItemData();
|
||||||
|
if (!InstalledApp)
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
return InstalledApp->UninstallApplication(bModify);
|
return InstalledApp->UninstallApplication(bModify);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue