mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-03 09:46:17 +01:00
Merge branch 'gwin32-avoid-g-return-macro' into 'main'
gwin32: Avoid use of function call with side effect in g_return_* macro See merge request GNOME/glib!3365
This commit is contained in:
commit
adcf017eb4
@ -578,7 +578,9 @@ g_win32_check_windows_version (const gint major,
|
||||
|
||||
/* Check for Service Pack Version >= 0 */
|
||||
g_return_val_if_fail (spver >= 0, FALSE);
|
||||
g_return_val_if_fail (_g_win32_call_rtl_version (&osverinfo), FALSE);
|
||||
|
||||
if (!_g_win32_call_rtl_version (&osverinfo))
|
||||
return FALSE;
|
||||
|
||||
/* check the OS and Service Pack Versions */
|
||||
if (osverinfo.dwMajorVersion > (DWORD) major)
|
||||
|
Loading…
Reference in New Issue
Block a user