http://bugs.winehq.org/show_bug.cgi?id=19982
--- Comment #12 from red-ray ray@pobox.co.uk 2009-09-11 14:23:48 --- (In reply to comment #11)
I don't think you can treat thread affinity independently from process affinity. Some test cases would be in order. Also your patch is again fetching the affinity on every thread startup.
Looking at http://msdn.microsoft.com/en-us/library/ms686247(VS.85).aspx the only requirement from the Windows specification is the thread affinity must be a subset of the process affinity.