]> git.sesse.net Git - vlc/commit
* src/misc/mtime.c: fixed an overflow in mdate() on win32.
authorGildas Bazin <gbazin@videolan.org>
Tue, 9 Dec 2003 19:18:48 +0000 (19:18 +0000)
committerGildas Bazin <gbazin@videolan.org>
Tue, 9 Dec 2003 19:18:48 +0000 (19:18 +0000)
commit9e1d63b5dc6ac63a451eaa7708d65ab0973bd6e2
tree647d44de94a924c3ce2cac58f11430d3a3f5507a
parentb6b1e9eef0edf4d43e0db8281e3a9dd25f0afbe3
* src/misc/mtime.c: fixed an overflow in mdate() on win32.
  This overflow was only affecting the hardware configurations where we can't use the performance counter and thus have to use GetTickCount().
  We now also check for the wrapping of the 32 bits value returned by GetTickCount() so mdate() doesn't wrap after 49.7 days.
* src/misc/win32_specific.c: call mdate() once in system_Init() so as to avoid thread safety issues while initialising the static variables used in mdate().
src/misc/mtime.c
src/misc/win32_specific.c