Peter Dennis Bartok peter@novonyx.com writes:
Perhaps this could be changed to a static variable in process.c
Wouldn't that make it rather hard to be set from outside process.c? I need to set it from wine-sharedlib.exe.so
It seems to me that you could simply do a longjmp() out of your WinMain, and then you wouldn't need to modify Wine at all. It would require patching up the TEB a bit (for instance to remove the exception handler chain), but nothing really complicated.