[Xfce4-commits] <midori:master> Determine the Windows version correctly

Christian Dywan noreply at xfce.org
Mon May 2 02:58:01 CEST 2011


Updating branch refs/heads/master
         to a1afb2f8918693344c5ace6f734bcbc4089c3f20 (commit)
       from 880a8809769519ed7257cced54ea0712306468ed (commit)

commit a1afb2f8918693344c5ace6f734bcbc4089c3f20
Author: Paweł Forysiuk <tuxator at o2.pl>
Date:   Mon May 2 02:01:23 2011 +0200

    Determine the Windows version correctly

 midori/midori-websettings.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/midori/midori-websettings.c b/midori/midori-websettings.c
index 1be914e..1330090 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)



More information about the Xfce4-commits mailing list