Commit 48b41a2f authored by Tor Lillqvist's avatar Tor Lillqvist

Keep the check for non-NULL parameter.

parent a7e60b75
......@@ -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);
......
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment