summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@montyprogram.com>2012-11-22 18:27:02 +0100
committerVladislav Vaintroub <wlad@montyprogram.com>2012-11-22 18:27:02 +0100
commit3fa356106694857a2e89e3aa135679799cbe7543 (patch)
tree08d48d1e58a6fc2f6caaef051baa2de779b42133 /plugin
parent47c5018f592b61b5e000842bdf5862ff458de488 (diff)
downloadmariadb-git-3fa356106694857a2e89e3aa135679799cbe7543.tar.gz
Feedback plugin now recognizes Windows 8 / Windows Server 2012.
Diffstat (limited to 'plugin')
-rw-r--r--plugin/feedback/utils.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugin/feedback/utils.cc b/plugin/feedback/utils.cc
index 48bbd72d530..708cc04f33e 100644
--- a/plugin/feedback/utils.cc
+++ b/plugin/feedback/utils.cc
@@ -44,6 +44,12 @@ static const char *get_os_version_name(OSVERSIONINFOEX *ver)
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)?