https://bugs.winehq.org/show_bug.cgi?id=52396
Paul Gofman pgofman@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |pgofman@codeweavers.com
--- Comment #8 from Paul Gofman pgofman@codeweavers.com --- This is my patch from official Proton, where it got to GE custom probably and where it has proper subject and authorship.
The background of the issue is that .Net 6 has its own replacement for RtlRestoreContext. Wine uses a workaround for own exception handlers on x64: using TIB handlers just like on i386 and pops them in RtlRestoreContext. When the handkers are not popped they are erroneously used later with unrelated stack contents. My patch adds the functionally correct handling of that for exception processing part, although it is not a complete solution as there are more Wine handlers which are not fixed by this patch. Upstream solution is waiting fir proper .seh exception handling support by compiler.