possibly new regression
Rein Klazes
wijn at wanadoo.nl
Sun Feb 20 09:04:54 CST 2005
On Sat, 19 Feb 2005 17:56:45 +0100, you wrote:
> Hi,
>
> I'm new to the list, so please tell me if I do anything wrong ;).
>
> The update from wine-2005-01-11 to wine-2005-02-11 caused a regression with an application I'm trying to get to work.
>
> I identified the concrete patch that introduces the problem.
>
> It's this one made by Rein Klazes:
> http://www.winehq.org/hypermail/wine-cvs/2005/01/0612.html
>
> What I see happening is the following:
>
> sebi at mighty system $ wine gothic.exe
> wine: Unhandled exception (thread 0009), starting debugger...
> WineDbg starting on pid 0x8
> Unhandled exception: divide by zero in 32-bit code (0x00500280).
[snip]
Does this patch help?
Rein.
-------------- next part --------------
--- 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;
}
More information about the wine-devel
mailing list