http://bugs.winehq.org/show_bug.cgi?id=18285
--- Comment #12 from Vitaliy Margolen vitaliy@kievinfo.com 2009-09-13 17:01:17 --- (In reply to comment #11)
Thank you for investigating this. The telling part was the last while() loop in the code. If it has no message pulling (GetMessage/WaitFor*) - Wine won't be processing thread's X messages.