[Wine]Re: Vegas Video 4 installer - debian specific ?

Rein Klazes wijn at wanadoo.nl
Wed Jan 19 04:52:10 CST 2005


On Tue, 18 Jan 2005 19:28:07 +0100, in gmane.comp.emulators.wine.user
you wrote:

> Le lundi 17 janvier 2005 à 18:46 +0100, Xavier Bestel a écrit :
> > Hi,
> > 
> > I'm trying to install Vegas Video 4 (the installer is a single big .exe)
> > but it fails right at the beginning with an "Unhandled exception".
> > I'm under debian/sid, I tried both winehq.org's binaries and CVS with no
> > luck. I'm pasting the log at the end of the mail.
> > >From now on, I don't know what to do. I tried using native versions of
> > various dlls, I tried playing the the windows version in the config
> > file, it didn't help. Does anyone have a good hint ?
> 
> It works on a stock Fedora Core 3 install (with "native" wine).
> The problem seems to occur only on debian.
> If anyone has an idea why, or how to spot the difference, I'll gladly
> try.

I guess the Fedora machine is the faster of the two. The program crashes
on the calculation of the Performance Counter Frequency. Your program
expects some minimum value, and Wine ... hmm.

Can you try the attached (rough) patch?

Rein.
-- 
Rein Klazes
rklazes at xs4all.nl
-------------- next part --------------
--- wine/dlls/kernel/cpu.c	2004-12-29 12:09:47.000000000 +0100
+++ mywine/dlls/kernel/cpu.c	2005-01-19 11:24:39.000000000 +0100
@@ -188,7 +188,7 @@ BOOL WINAPI QueryPerformanceCounter(PLAR
 	/* i586 optimized version */
 	__asm__ __volatile__ ( "rdtsc"
 			       : "=a" (counter->u.LowPart), "=d" (counter->u.HighPart) );
-	counter->QuadPart = counter->QuadPart / 1000; /* see below */
+	counter->QuadPart = counter->QuadPart / ( cpuHz / 1193182 ) ; /* see below */
 	return TRUE;
     }
 #endif
@@ -222,7 +222,7 @@ BOOL WINAPI QueryPerformanceFrequency(PL
         /* The way Windows calculates this value is unclear, however simply using the CPU frequency
            gives a value out by approximately a thousand. That can cause some applications to crash,
            so we divide here to make our number more similar to the one Windows gives  */
-        frequency->QuadPart = cpuHz / 1000;
+        frequency->QuadPart = 1193182;
         return TRUE;
     }
 #endif


More information about the wine-users mailing list