https://bugs.winehq.org/show_bug.cgi?id=39779
--- Comment #2 from Jane Li lixjcn@yahoo.com --- Thanks. I'll test with wine 1.8-rc3.
However, from the commit in that link, I doubt it's not the same issue. The fix in the link is for : krnl386.exe: Release the Win16 lock when loading a 32-bit dll. While the issue I have is due to loader lock obtained before win16 lock when shuting down thread. Then in another thread, when an win16 program is being loaded, it obtains win16 lock and waiting for loader lock, thus there's a dead lock between the two threads.
Will let you know the test result with wine 1.8-rc3.