http://bugs.winehq.org/show_bug.cgi?id=31303
--- Comment #7 from Erich Hoover ehoover@mines.edu 2012-08-25 15:22:58 CDT --- (In reply to comment #6)
Created attachment 41480 [details] patch
Please try this one and report results.
It doesn't work as it stands, but it will work if you have it return "3" instead of "2". Apparently it's very particular about the NULL terminator ;)