--- wine/dlls/ntdll/nt.c 2005-02-12 08:18:02.000000000 +0100 +++ mywine/dlls/ntdll/nt.c 2005-02-20 15:05:24.000000000 +0100 @@ -521,8 +521,11 @@ NTSTATUS WINAPI NtQueryPerformanceCounte { LARGE_INTEGER time; NtQuerySystemTime( &time ); - Counter->QuadPart = time.QuadPart; - Frequency->QuadPart = 10000000; + /* convert a counter that increments 10 counts at a rate 1 MHz + * to one of 1193182 Hz, with some care for arithmetic overflows + * (will occur after approx. 200 days */ + Counter->QuadPart = ((time.QuadPart / 10) * 596591 ) / 500000 ; + Frequency->QuadPart = 1193182; return 0; }