Skip to content

Commit

Permalink
OrcLib: SystemDetails: generalize Service Packs in SystemDetails
Browse files Browse the repository at this point in the history
  • Loading branch information
jgautier-anssi authored and fabienfl-orc committed Nov 9, 2020
1 parent 1862e0f commit 3f5d388
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions src/OrcLib/SystemDetails.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,24 +243,8 @@ const SystemTags& Orc::SystemDetails::GetSystemTags()
if (major < 10)
tags.insert(L"RTM"s);
break;
case 1:
tags.insert(L"SP1"s);
break;
case 2:
tags.insert(L"SP2"s);
break;
case 3:
tags.insert(L"SP3"s);
break;
case 4:
tags.insert(L"SP4"s);
break;
case 5:
tags.insert(L"SP5"s);
break;
case 6:
tags.insert(L"SP6"s);
break;
default:
tags.insert(fmt::format(L"SP{}"sv, g_pDetailsBlock->osvi.wServicePackMajor));
}

tags.insert(L"Windows"s);
Expand Down

0 comments on commit 3f5d388

Please sign in to comment.