summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorBerke Viktor <bviktor@hexchat.org>2012-10-25 22:04:16 +0200
committerBerke Viktor <bviktor@hexchat.org>2012-10-25 22:04:16 +0200
commitb1db3cf514eb5ee78e5b1028c197e800e7368765 (patch)
treef3ce5542bf1881cb19b7cc7df9f1c1779d2b471c /src
parent05407ee4664350bc02476511e9e2c4262ad8d880 (diff)
Eliminate compiler warning and update Windows Server name
Diffstat (limited to 'src')
-rw-r--r--src/common/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/util.c b/src/common/util.c
index f05a2c9e..0881c708 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -681,7 +681,7 @@ get_cpu_str (void)
 	double mhz;
 
 	osvi.dwOSVersionInfoSize = sizeof (OSVERSIONINFOEX);
-	GetVersionEx (&osvi);
+	GetVersionEx ((OSVERSIONINFO*) &osvi);
 
 	switch (osvi.dwMajorVersion)
 	{
@@ -740,7 +740,7 @@ get_cpu_str (void)
 					}
 					else
 					{
-						strcpy (winver, "8 Server");
+						strcpy (winver, "Server 2012");
 					}
 					break;
 			}