gwin32.c: Avoid a GCC warning

Add a pair of braces to make things more clear, to avoid a warning
when -Wparentheses is used.

Reported by Ignacio Casel Quinteiro.
This commit is contained in:
Chun-wei Fan 2016-01-28 15:55:11 +08:00
parent 42699e37be
commit dfd74a271d

View File

@ -598,11 +598,13 @@ g_win32_check_windows_version (const gint major,
if (osverinfo.dwMajorVersion > major)
is_ver_checked = TRUE;
else if (osverinfo.dwMajorVersion == major)
if (osverinfo.dwMinorVersion > minor)
is_ver_checked = TRUE;
else if (osverinfo.dwMinorVersion == minor)
if (osverinfo.wServicePackMajor >= spver)
{
if (osverinfo.dwMinorVersion > minor)
is_ver_checked = TRUE;
else if (osverinfo.dwMinorVersion == minor)
if (osverinfo.wServicePackMajor >= spver)
is_ver_checked = TRUE;
}
/* Check OS Type */
if (is_ver_checked)