Skip to content

Commit d5ce3d2

Browse files
authored
[RAPPS] Don't display Freeware license string if the type is also Freeware (reactos#7689)
License=Freeware, LicenseType=2 should not display as "Freeware (Freeware)"
1 parent a23db39 commit d5ce3d2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

base/applications/rapps/appinfo.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,16 +163,16 @@ CAvailableApplicationInfo::LicenseString()
163163
LicenseType licenseType;
164164

165165
if (IsKnownLicenseType(IntBuffer))
166-
{
167166
licenseType = static_cast<LicenseType>(IntBuffer);
168-
}
169167
else
170-
{
171168
licenseType = LICENSE_NONE;
169+
170+
if (licenseType == LICENSE_NONE || licenseType == LICENSE_FREEWARE)
171+
{
172172
if (szLicenseString.CompareNoCase(L"Freeware") == 0)
173173
{
174174
licenseType = LICENSE_FREEWARE;
175-
szLicenseString = L"";
175+
szLicenseString = L""; // Don't display as "Freeware (Freeware)"
176176
}
177177
}
178178

0 commit comments

Comments
 (0)