QueryPerformanceFrequency bugfix

Andreas Mohr andi at rhlx01.fht-esslingen.de
Sun Jun 29 10:14:11 CDT 2003


Hi,

On Sun, Jun 29, 2003 at 04:05:04PM +0100, Mike Hearn wrote:
> This patch stops the demo of Settlers 4 crashing at startup.
> 
> ChangeLog:
> Add some traces
> A Mhz is 1000Hz, not 100000

Whaaaaa!?

First, it's 1000000, which is one zero more than what you wrote
(and what the code used: +1000000.0).
Second, one MHz *IS* 1000000Hz.

So there are two possibilities:
a) the code should calculate the result in units of kHz (then your observation
would be correct)
b) you are (completely? ;) wrong

Andreas Mohr



More information about the wine-devel mailing list