https://bugs.winehq.org/show_bug.cgi?id=40502
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dark.shadow4@web.de
--- Comment #7 from Fabian Maurer dark.shadow4@web.de --- Still an issue as of wine-5.5.
When the program is loaded, during wine_dlopen, the static constructors are run. But only during main, wine gets a chance to fixup the imports by calling LdrInitializeThunk.
So during static constructors no wine code can be called, since the imports are not fixed up yet.