http://bugs.winehq.org/show_bug.cgi?id=25108
Summary: Critical sections used without calling the initialization function Product: Wine Version: 1.3.6 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: blocker Priority: P2 Component: ntdll AssignedTo: wine-bugs@winehq.org ReportedBy: 8jmtfa1e@gmail.com
I was doing some experiments with dlls/ntdll/critsection.c trying to verify if it was causing the huge performance penalty in Starcraft II.
My experiments stalled when I realized that some parts of wine used critical sections without even bother calling RtlInitializeCriticalSection first. That's an abomination and a great example of spaghetti code.