http://bugs.winehq.org/show_bug.cgi?id=10213
--- Comment #36 from Lei Zhang thestig@google.com 2008-05-31 13:34:41 --- Created an attachment (id=13535) --> (http://bugs.winehq.org/attachment.cgi?id=13535) small test program
I think that patch should be reverted. It's up to the app to decide how it should handle WM_ENDSESSION. The default window procedure should not force the application to quit. For comparison, run this simple program on Windows and Wine.