Determine the Windows version correctly
This commit is contained in:
parent
880a880976
commit
a1afb2f891
1 changed files with 3 additions and 1 deletions
|
@ -1254,7 +1254,9 @@ get_sys_name (void)
|
||||||
if (!sys_name)
|
if (!sys_name)
|
||||||
{
|
{
|
||||||
#ifdef G_OS_WIN32
|
#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
|
#else
|
||||||
struct utsname name;
|
struct utsname name;
|
||||||
if (uname (&name) != -1)
|
if (uname (&name) != -1)
|
||||||
|
|
Loading…
Reference in a new issue