Bugfix (custom hack): FileDialog returns 0 for filterindex even if there is no filter.