mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Fix buggy patterns.
This commit is contained in:
@@ -265,7 +265,8 @@ public static class DetectOS
|
|||||||
goto default;
|
goto default;
|
||||||
case PlatformID.Win32NT:
|
case PlatformID.Win32NT:
|
||||||
// From Windows 8.1 the reported version is simply falsified...
|
// 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.
|
return FileVersionInfo.
|
||||||
GetVersionInfo(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.System),
|
GetVersionInfo(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.System),
|
||||||
|
|||||||
Reference in New Issue
Block a user