mirror of
https://github.com/aaru-dps/Aaru.CommonTypes.git
synced 2025-12-16 19:24:30 +00:00
Fix buggy patterns.
This commit is contained in:
@@ -265,7 +265,8 @@ public static class DetectOS
|
||||
goto default;
|
||||
case PlatformID.Win32NT:
|
||||
// From Windows 8.1 the reported version is simply falsified...
|
||||
if(Environment.OSVersion.Version.Major is 6 and >= 2 or > 6)
|
||||
if(Environment.OSVersion.Version.Major == 6 && Environment.OSVersion.Version.Minor >= 2 ||
|
||||
Environment.OSVersion.Version.Major > 6)
|
||||
{
|
||||
return FileVersionInfo.
|
||||
GetVersionInfo(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.System),
|
||||
|
||||
Reference in New Issue
Block a user