added correct temp folder path for mac classic
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13326 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -537,6 +537,9 @@ wxFileName::CreateTempFileName(const wxString& prefix, wxFile *fileTemp)
|
|||||||
#else // !Windows, !OS/2
|
#else // !Windows, !OS/2
|
||||||
if ( dir.empty() )
|
if ( dir.empty() )
|
||||||
{
|
{
|
||||||
|
#if defined( __WXMAC__ ) && !defined(__DARWIN__)
|
||||||
|
dir = wxMacFindFolder( (short) kOnSystemDisk, pTemporaryFolder, kCreateFolder ) ;
|
||||||
|
#else
|
||||||
dir = wxGetenv(_T("TMP"));
|
dir = wxGetenv(_T("TMP"));
|
||||||
if ( path.empty() )
|
if ( path.empty() )
|
||||||
{
|
{
|
||||||
@@ -552,6 +555,7 @@ wxFileName::CreateTempFileName(const wxString& prefix, wxFile *fileTemp)
|
|||||||
dir = _T("/tmp");
|
dir = _T("/tmp");
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
path = dir;
|
path = dir;
|
||||||
|
Reference in New Issue
Block a user