http://bugs.winehq.org/show_bug.cgi?id=36377
--- Comment #10 from bugzilla@dolphinling.net --- The patch in comment 9 does fix the problem. Specifcally, I tested commit b84e112 with the patch applied, with windows version set to windows 7, and I didn't crash.
Thanks Jacek!