Hey,
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'.
The global variable thing is ugly; we could export a different entry point instead, but I'm not sure it's really necessary. Why doesn't your WinMain get called?
If you move most of the initialization code from main() to mymain() and just let main () call mymain and then jump into WinMain, basically doing the same thing the flag does, then we can just provide our own, and call the mymain() method.