http://bugs.winehq.org/show_bug.cgi?id=20253
--- Comment #3 from Nikolay Sivov bunglehead@gmail.com 2009-10-03 16:09:44 --- Created an attachment (id=23897) --> (http://bugs.winehq.org/attachment.cgi?id=23897) Check for NULL pointer
A fix patch with a test.