Some updates to windows version detection.

This commit is contained in:
Adam Murdoch
2014-03-28 12:29:52 +11:00
parent d1a2e07351
commit 7a5f1b76cc

View File

@@ -64,7 +64,7 @@ public class MutableSystemInfo implements SystemInfo {
case 1: case 1:
return "Windows XP"; return "Windows XP";
case 2: case 2:
return "Windows Server 2003"; return workstation ? "Windows XP Professional" : "Windows Server 2003";
} }
break; break;
case 6: case 6:
@@ -75,6 +75,8 @@ public class MutableSystemInfo implements SystemInfo {
return workstation ? "Windows 7" : "Windows Server 2008 R2"; return workstation ? "Windows 7" : "Windows Server 2008 R2";
case 2: case 2:
return workstation ? "Windows 8" : "Windows Server 2012"; return workstation ? "Windows 8" : "Windows Server 2012";
case 3:
return workstation ? "Windows 8.1" : "Windows Server 2012 R2";
} }
break; break;
} }