comdlg32: Fixed a number of buffer overflows in the file dialog.