mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-03 17:56:17 +01:00
Keep the check for non-NULL parameter.
This commit is contained in:
parent
a7e60b7576
commit
48b41a2f5f
@ -632,6 +632,8 @@ g_get_current_time (GTimeVal *result)
|
||||
FILETIME filetime;
|
||||
gint64 t;
|
||||
|
||||
g_return_if_fail (result != NULL);
|
||||
|
||||
GetSystemTimeAsFileTime (&filetime);
|
||||
t = ((gint64) filetime.dwLowDateTime) +
|
||||
((gint64) filetime.dwHighDateTime) * G_GINT64_CONSTANT (0x100000000);
|
||||
|
Loading…
Reference in New Issue
Block a user