RFC: KUSER_SHARED_DATA update patch to fix bug 29168

Vitaliy Margolen wine-devel at kievinfo.com
Sat Mar 24 16:59:29 CDT 2012


On 03/24/2012 01:09 PM, Joey Yandle wrote:
> Any code written for windows expects these values to
> update every 15.6 ms.
Exactly. Wine's wineserver & fake kernel in form of ntoskernl can not work 
with native speed by definition.

For example even earliest versions of safedisk (1.5) were really picky about 
how long some kernel calls take. This is to protect against debugger. When 
numbers don't increment (as happens now) protection is happy. When they 
start to increment, even on fast PCs round trip 
user-space->wineserver->ntoskrnl will take way longer then it "should".

Of course this is all based on research I did 5 years ago. But surprisingly 
enough those old Safedisk versions still work, assuming you have supported 
gcc version, and few other requirements.

Vitaliy



More information about the wine-devel mailing list