[Commits] Rev 3172: Feedback plugin now recognizes Windows 8 / Windows Server 2012. in file:///H:/bzr/5.1/

Vladislav Vaintroub wlad at montyprogram.com
Thu Nov 22 19:27:11 EET 2012


At file:///H:/bzr/5.1/

------------------------------------------------------------
revno: 3172
revision-id: wlad at montyprogram.com-20121122172702-gt5lrx7dvlpdh1ne
parent: knielsen at knielsen-hq.org-20121120122853-z8ohgttcq24d18r5
committer: Vladislav Vaintroub <wlad at montyprogram.com>
branch nick: 5.1
timestamp: Thu 2012-11-22 18:27:02 +0100
message:
  Feedback plugin now recognizes  Windows 8 / Windows Server 2012.
-------------- next part --------------
=== modified file 'plugin/feedback/utils.cc'
--- a/plugin/feedback/utils.cc	2011-11-12 15:41:00 +0000
+++ b/plugin/feedback/utils.cc	2012-11-22 17:27:02 +0000
@@ -44,6 +44,12 @@
   DWORD major = ver->dwMajorVersion;
   DWORD minor = ver->dwMinorVersion;
 
+  if (major == 6 && minor == 2)
+  {
+    return (ver->wProductType == VER_NT_WORKSTATION)?
+      "Windows 8":"Windows Server 2012";    
+  }
+  
   if (major == 6 && minor == 1)
   {
     return (ver->wProductType == VER_NT_WORKSTATION)?



More information about the commits mailing list