summary refs log tree commit diff stats
path: root/src/common
diff options
context:
space:
mode:
authorberkeviktor@aol.com <berkeviktor@aol.com>2011-06-17 00:01:25 +0200
committerberkeviktor@aol.com <berkeviktor@aol.com>2011-06-17 00:01:25 +0200
commit98999bb19d7660321c7151371def629674c5cbc0 (patch)
treea2ab7fb3198ee1c542a0a8d631f8a8945ef7db6d /src/common
parent2e5752863f425118934675ede36396ad7d6be915 (diff)
add support for Windows 8 in CTCP VERSION reply
Diffstat (limited to 'src/common')
-rw-r--r--src/common/util.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/common/util.c b/src/common/util.c
index 5677e82a..b9bf3b35 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -726,6 +726,16 @@ get_cpu_str (void)
 						strcpy (winver, "Server 2008 R2");
 					}
 					break;
+				case 2:
+					if (osvi.wProductType == VER_NT_WORKSTATION)
+					{
+						strcpy (winver, "8");
+					}
+					else
+					{
+						strcpy (winver, "8 Server");
+					}
+					break;
 			}
 			break;
 	}