https://bugs.winehq.org/show_bug.cgi?id=44893
--- Comment #16 from Bruno Santos brunomanuelsantos@tecnico.ulisboa.pt --- Hey folks,
(In reply to bugzilla from comment #15)
I remember that we had that trampoline issue quite a time ago already, which required a very similar patchset to make it work with wine. Here's the old patchset, I unfortunately cannot find the Bug report (it was for Fallout 4): https://github.com/hdmap/wine-hackery/tree/master/f4se
At some point it worked without, because I think the SKSE authors (actually I was playing Fallout 4 at that time, so it was FOSE) did change something. This still worked good to this day, as long as you don't side-load any other dll besides the Script Extender DLL.
I reached out to the SKSE team about this and Ian Patterson confirmed that there had been a bug with calculating the minimum safe address and corrected it in F4SE, but somehow it was not corrected for SKSE. He fixed it now:
https://github.com/ianpatt/skse64/commit/4a1e1219578890fb8cfb077daf08b386855...
This may or may not explain why F4SE eventually worked without any patch (can't test myself). Waiting for a new release of SKSE so I can confirm it (not confident compiling it myself).