http://bugs.winehq.org/show_bug.cgi?id=7710
Piotr Pawlow pp@siedziba.pl changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #5347 is|0 |1 obsolete| | Attachment #5348 is|0 |1 obsolete| |
--- Comment #6 from Piotr Pawlow pp@siedziba.pl 2007-03-14 17:19:30 --- Looks like LiveForSpeed uses GetTickCount. Works perfectly on my Linux system after rewriting NtGetTickCount in dlls/ntdll/time.c to use clock_gettime(CLOCK_MONOTONIC,...) like this:
ULONG WINAPI NtGetTickCount(void) { struct timespec current_time;
clock_gettime(CLOCK_MONOTONIC, ¤t_time); return current_time.tv_sec * 1000 + current_time.tv_nsec / 1000000; }
--- Comment #7 from Piotr Pawlow pp@siedziba.pl 2007-03-14 17:23:07 --- Created an attachment (id=5356) --> (http://bugs.winehq.org/attachment.cgi?id=5356) test case
Test case updated to check GetTickCount too.