mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-05 02:36:19 +01: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:
parent
42699e37be
commit
dfd74a271d
@ -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)
|
{
|
||||||
is_ver_checked = TRUE;
|
if (osverinfo.dwMinorVersion > minor)
|
||||||
else if (osverinfo.dwMinorVersion == minor)
|
is_ver_checked = TRUE;
|
||||||
if (osverinfo.wServicePackMajor >= spver)
|
else if (osverinfo.dwMinorVersion == minor)
|
||||||
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user