mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-14 21:00:42 +02:00
Prevent suspension when flushing thread state to the WOW64 context during BTCpuSetContext as suspension itself performs a flush. If suspension were to occur halfway through FlushThreadStateContext then the fact that the WOW64 context has been dirtied would be missed and the new context would be partially overwritten with stale data from the FEX thread state. Additionally if the context were to be dirtied by suspension at any point during context merging in BTCpuSetContext the input context could be lost. Fixes occasional crashes when starting AC4.