https://git.reactos.org/?p=reactos.git;a=commitdiff;h=d5ce3d28abb48c0a1e0b40f7c6802154433c9ac2

commit d5ce3d28abb48c0a1e0b40f7c6802154433c9ac2
Author:     Whindmar Saksit <whinds...@proton.me>
AuthorDate: Thu Jan 30 21:14:10 2025 +0100
Commit:     GitHub <nore...@github.com>
CommitDate: Thu Jan 30 21:14:10 2025 +0100

    [RAPPS] Don't display Freeware license string if the type is also Freeware 
(#7689)
    
    License=Freeware, LicenseType=2 should not display as "Freeware (Freeware)"
---
 base/applications/rapps/appinfo.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/base/applications/rapps/appinfo.cpp 
b/base/applications/rapps/appinfo.cpp
index eefbb91d2e5..1970b9459d9 100644
--- a/base/applications/rapps/appinfo.cpp
+++ b/base/applications/rapps/appinfo.cpp
@@ -163,16 +163,16 @@ CAvailableApplicationInfo::LicenseString()
     LicenseType licenseType;
 
     if (IsKnownLicenseType(IntBuffer))
-    {
         licenseType = static_cast<LicenseType>(IntBuffer);
-    }
     else
-    {
         licenseType = LICENSE_NONE;
+
+    if (licenseType == LICENSE_NONE || licenseType == LICENSE_FREEWARE)
+    {
         if (szLicenseString.CompareNoCase(L"Freeware") == 0)
         {
             licenseType = LICENSE_FREEWARE;
-            szLicenseString = L"";
+            szLicenseString = L""; // Don't display as "Freeware (Freeware)"
         }
     }
 

Reply via email to