Wine as shared library patch

Alexandre Julliard julliard at
Thu Mar 4 19:53:44 CST 2004

Peter Dennis Bartok <peter at> 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

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.

Alexandre Julliard
julliard at

More information about the wine-devel mailing list