mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 11:26:16 +01:00
Add a g_return_val_if_fail check in both versions. Proposed by Patrik
* glib/gmain.c (g_get_current_time): Add a g_return_val_if_fail check in both versions. Proposed by Patrik Olsson in bug 540545. svn path=/trunk/; revision=7142
This commit is contained in:
parent
fb73f68040
commit
fef22bfe23
@ -1,3 +1,8 @@
|
||||
2008-07-02 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* glib/gmain.c (g_get_current_time): Add a g_return_val_if_fail
|
||||
check in both versions. Proposed by Patrik Olsson in bug 540545.
|
||||
|
||||
2008-07-02 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* configure.in: Workaround AC_C_BIGENDIAN breakage in autoconf 2.61.
|
||||
|
@ -1715,6 +1715,8 @@ g_get_current_time (GTimeVal *result)
|
||||
FILETIME ft;
|
||||
guint64 *time64 = (guint64 *) &ft;
|
||||
|
||||
g_return_if_fail (result != NULL);
|
||||
|
||||
GetSystemTimeAsFileTime (&ft);
|
||||
|
||||
/* Convert from 100s of nanoseconds since 1601-01-01
|
||||
|
Loading…
Reference in New Issue
Block a user