Skip to content

Commit

Permalink
OrcLib: SystemDetails: add "Windows" and "RTM" tag for pre-Win10 vers…
Browse files Browse the repository at this point in the history
…ions
  • Loading branch information
jgautier-anssi authored and fabienfl-orc committed Nov 3, 2020
1 parent 9b64b02 commit b376472
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/OrcLib/SystemDetails.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,8 @@ const SystemTags& Orc::SystemDetails::GetSystemTags()
switch (g_pDetailsBlock->osvi.wServicePackMajor)
{
case 0:
tags.insert(L"RTM"s);
if (major < 10)
tags.insert(L"RTM"s);
break;
case 1:
tags.insert(L"SP1"s);
Expand All @@ -265,6 +266,8 @@ const SystemTags& Orc::SystemDetails::GetSystemTags()
break;
}

tags.insert(L"Windows"s);

std::wstring strProductType;
if (auto hr = GetSystemType(strProductType); FAILED(hr))
throw Exception(Fatal, hr, L"System type not available");
Expand Down

0 comments on commit b376472

Please sign in to comment.