http://bugs.winehq.org/show_bug.cgi?id=17229
--- Comment #11 from Bruno Jesus 00cpxxx@gmail.com 2012-06-09 14:23:25 CDT --- The caller didn't allocate space for ofn->lpstrFile so it left it NULL in the structure, then it was not filled due to line 2652. Currently the code assume the variable was set and use it anyway leading to a crash. A correct fix would be to avoid using ofn->lpstrFile and use lpstrPathAndFile directly after proper unicode to char convertion.