From: Paweł Forysiuk Date: Mon, 2 May 2011 00:01:23 +0000 (+0200) Subject: Determine the Windows version correctly X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1afb2f8918693344c5ace6f734bcbc4089c3f20;p=midori Determine the Windows version correctly --- diff --git a/midori/midori-websettings.c b/midori/midori-websettings.c index 1be914e6..13300904 100644 --- a/midori/midori-websettings.c +++ b/midori/midori-websettings.c @@ -1254,7 +1254,9 @@ get_sys_name (void) if (!sys_name) { #ifdef G_OS_WIN32 - sys_name = g_strdup_printf ("NT %d.0", g_win32_get_windows_version ()); + /* 6.1 Win7, 60. Vista, 5.1 XP and 5 Win2k */ + guint version = g_win32_get_windows_version (); + sys_name = g_strdup_printf ("NT %d.%d", LOBYTE (version), HIBYTE (version)); #else struct utsname name; if (uname (&name) != -1)