http://bugs.winehq.org/show_bug.cgi?id=18059
--- Comment #5 from Jeff Zaroyko jeffz@jeffz.name 2009-08-13 06:33:41 --- (In reply to comment #4)
Created an attachment (id=23043)
--> (http://bugs.winehq.org/attachment.cgi?id=23043) [details]
patch
You should use wmain instead of main and just return 0 instead of calling exit.