From a1afb2f8918693344c5ace6f734bcbc4089c3f20 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pawe=C5=82=20Forysiuk?= Date: Mon, 2 May 2011 02:01:23 +0200 Subject: [PATCH] Determine the Windows version correctly --- midori/midori-websettings.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- 2.39.5