From e87f1d5d91b2e7f310da915def6e82fe57889aac Mon Sep 17 00:00:00 2001 From: Whindmar Saksit Date: Thu, 25 Jul 2024 00:22:12 +0200 Subject: [PATCH] [RAPPS] Uninstall empty directories after its children (#7164) --- base/applications/rapps/geninst.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/base/applications/rapps/geninst.cpp b/base/applications/rapps/geninst.cpp index d7cc3a678e0..9fff1d2b264 100644 --- a/base/applications/rapps/geninst.cpp +++ b/base/applications/rapps/geninst.cpp @@ -370,15 +370,12 @@ InstallFiles(const CStringW &SourceDirBase, const CStringW &Spec, { success = !ErrorBox(Info.Error); } - else - { - success = AddEntry(UNOP_EMPTYDIR, uninstpath); - } if (success) { success = InstallFiles(from, filespec, to); } + AddEntry(UNOP_EMPTYDIR, uninstpath); } } else