https://bugs.winehq.org/show_bug.cgi?id=43890
beren.minor+wine@gmail.com beren.minor+wine@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |beren.minor+wine@gmail.com
--- Comment #9 from beren.minor+wine@gmail.com beren.minor+wine@gmail.com --- Hi, I investigated the "Definitive Edition" version of the game, distributed on GOG (version 3.6.28.9550).
I'm not entirely sure if this is the only issue with DOS2, but from my investigation, one of the reason is that the game uses 0xfffffffe as an affinity mask for its threads, when the number of logical cores is less than 6.
In this case, SetThreadAffinityMask returns an error as the mask isn't a subset of the process affinity mask, as described by the Windows API documentation.
I don't know what is actually happening on Windows in this case, but because 0 is returned in this case, the game assume the thread creation failed, and ends up crashing.