Fixed PJ_Glide New MemPak/Browse button crash by Frank-74

This commit is contained in:
zilmar 2015-03-03 06:51:38 +11:00
parent fe4d7bfb5a
commit 4fed3ea0ec
1 changed files with 1 additions and 1 deletions

View File

@ -1096,7 +1096,7 @@ bool SaveLastBrowseDir( TCHAR *pszFileName, DWORD dwType )
bool BrowseFile( HWND hDlg, TCHAR *pszFileName, DWORD dwType, bool fSave )
{
TCHAR pszFilter[DEFAULT_BUFFER];
TCHAR *pszTitle = NULL;
TCHAR pszTitle[DEFAULT_BUFFER];
DWORD dwFlags = /*OFN_DONTADDTORECENT |*/ OFN_NOCHANGEDIR;
dwFlags |= (fSave) ? OFN_PATHMUSTEXIST | OFN_OVERWRITEPROMPT
: OFN_HIDEREADONLY | OFN_FILEMUSTEXIST;