Fixed PJ_Glide New MemPak/Browse button crash by Frank-74
This commit is contained in:
parent
fe4d7bfb5a
commit
4fed3ea0ec
|
@ -1096,7 +1096,7 @@ bool SaveLastBrowseDir( TCHAR *pszFileName, DWORD dwType )
|
||||||
bool BrowseFile( HWND hDlg, TCHAR *pszFileName, DWORD dwType, bool fSave )
|
bool BrowseFile( HWND hDlg, TCHAR *pszFileName, DWORD dwType, bool fSave )
|
||||||
{
|
{
|
||||||
TCHAR pszFilter[DEFAULT_BUFFER];
|
TCHAR pszFilter[DEFAULT_BUFFER];
|
||||||
TCHAR *pszTitle = NULL;
|
TCHAR pszTitle[DEFAULT_BUFFER];
|
||||||
DWORD dwFlags = /*OFN_DONTADDTORECENT |*/ OFN_NOCHANGEDIR;
|
DWORD dwFlags = /*OFN_DONTADDTORECENT |*/ OFN_NOCHANGEDIR;
|
||||||
dwFlags |= (fSave) ? OFN_PATHMUSTEXIST | OFN_OVERWRITEPROMPT
|
dwFlags |= (fSave) ? OFN_PATHMUSTEXIST | OFN_OVERWRITEPROMPT
|
||||||
: OFN_HIDEREADONLY | OFN_FILEMUSTEXIST;
|
: OFN_HIDEREADONLY | OFN_FILEMUSTEXIST;
|
||||||
|
|
Loading…
Reference in New Issue