mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-12 20:24:04 +02:00
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:
@@ -598,11 +598,13 @@ g_win32_check_windows_version (const gint major,
|
|||||||
if (osverinfo.dwMajorVersion > major)
|
if (osverinfo.dwMajorVersion > major)
|
||||||
is_ver_checked = TRUE;
|
is_ver_checked = TRUE;
|
||||||
else if (osverinfo.dwMajorVersion == major)
|
else if (osverinfo.dwMajorVersion == major)
|
||||||
|
{
|
||||||
if (osverinfo.dwMinorVersion > minor)
|
if (osverinfo.dwMinorVersion > minor)
|
||||||
is_ver_checked = TRUE;
|
is_ver_checked = TRUE;
|
||||||
else if (osverinfo.dwMinorVersion == minor)
|
else if (osverinfo.dwMinorVersion == minor)
|
||||||
if (osverinfo.wServicePackMajor >= spver)
|
if (osverinfo.wServicePackMajor >= spver)
|
||||||
is_ver_checked = TRUE;
|
is_ver_checked = TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
/* Check OS Type */
|
/* Check OS Type */
|
||||||
if (is_ver_checked)
|
if (is_ver_checked)
|
||||||
|
Reference in New Issue
Block a user