X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=reactos%2Fbase%2Fapplications%2Frapps%2Fgui.cpp;h=343771a00086a05ce6201440184f8034554b0e8e;hp=3b640712d91d520657b79a07588ea8557b5ba745;hb=c41df300661e4c1b5789b3c88a24f17f4bd243bb;hpb=bf41db72f60cf177f0051976db20613b851341d6;ds=sidebyside diff --git a/reactos/base/applications/rapps/gui.cpp b/reactos/base/applications/rapps/gui.cpp index 3b640712d91..343771a0008 100644 --- a/reactos/base/applications/rapps/gui.cpp +++ b/reactos/base/applications/rapps/gui.cpp @@ -1461,7 +1461,7 @@ private: nSelectedApps = 0; if (EnumType < 0) EnumType = SelectedEnumType; - if (IS_INSTALLED_ENUM(SelectedEnumType)) + if (IS_INSTALLED_ENUM(EnumType)) { FreeInstalledAppList(); } @@ -1482,7 +1482,10 @@ private: if (isAvailableEnum(EnumType)) { /* Enum available applications */ - m_AvailableApps.EnumAvailableApplications(EnumType, s_EnumAvailableAppProc); + if (!m_AvailableApps.EnumAvailableApplications(EnumType, s_EnumAvailableAppProc)) + { + return; + } } SelectedEnumType = EnumType;