https://bugs.winehq.org/show_bug.cgi?id=48817
--- Comment #2 from qsniyg qsniyg@mail.com --- Since a bunch of the emails regarding the patch were done without wine-devel CC'd, I'll update the status of it here:
The patch I wrote adds a new variable to a wine structure, something that doesn't exist under Windows, so while it works, it almost certainly isn't the proper solution.
According to AJ, a proper solution would likely require only calling Module_InitDLL when wine is sure that it's a DLL. I'm not very familiar with this however, so I don't yet know exactly how to do this without possibly introducing regressions. I'll have to look into this further.
For the moment, the attached patch should be functional enough without introducing regressions, but it's not the correct way to do it either.