http://bugs.winehq.org/show_bug.cgi?id=10610
--- Comment #13 from Gustaw Smolarczyk wielkiegie@gmail.com 2007-12-04 11:28:26 --- You shouldn't delete block, but change it to something like:
ActivateContext(myDevice, myDevice->lastActiveRenderTarget, CTXUSAGE_RESOURCELOAD);
So you should delete only `if' expression and brackets around `ActiveContext' function call. If the whole block is deleted then the crash still occurs, even if application has set MULTTHREADED flag.