Hello,
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.
Well, the issue is that our WinMain is never called, and we would rather not depend on this in our patch, but instead get the small global that says `Hey Wine, just return'.
Miguel