On Sat Jun 14 01:42:02 2025 +0000, Jinoh Kang wrote:
If only `SERVER_CTX_CONTROL` is set, the server would ignore this rbp value since `SERVER_CTX_INTEGER` is NOT set. This goes on similarly with other changes. Perhaps we should move the translation logic to wineserver instead, so it can do the actual mapping itself.
FYI:
I'm aware of the problem, the core problem is the assumption that the i386 flags match the x64 flags 1:1, which probably goes beyond the translation logic in this function. To implement this properly, tests are probably necessary to verify how exactly windows deals with this.
I was quite unsure how to deal with this, so I've asked @julliard about it in private, and he told me it's probably okay to ignore this problem for now and the exact details might not matter that much. So I've written a "just forward whatever values we have" logic for now, and I think it's best to wait for his review here.