typo which prevented TMP env var from being used in CreateTempFile fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13350 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -537,11 +537,11 @@ wxFileName::CreateTempFileName(const wxString& prefix, wxFile *fileTemp)
|
||||
#else // !Windows, !OS/2
|
||||
if ( dir.empty() )
|
||||
{
|
||||
#if defined( __WXMAC__ ) && !defined(__DARWIN__)
|
||||
#if defined(__WXMAC__) && !defined(__DARWIN__)
|
||||
dir = wxMacFindFolder( (short) kOnSystemDisk, pTemporaryFolder, kCreateFolder ) ;
|
||||
#else
|
||||
#else // !Mac
|
||||
dir = wxGetenv(_T("TMP"));
|
||||
if ( path.empty() )
|
||||
if ( dir.empty() )
|
||||
{
|
||||
dir = wxGetenv(_T("TEMP"));
|
||||
}
|
||||
@@ -555,7 +555,7 @@ wxFileName::CreateTempFileName(const wxString& prefix, wxFile *fileTemp)
|
||||
dir = _T("/tmp");
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
#endif // Mac/!Mac
|
||||
}
|
||||
|
||||
path = dir;
|
||||
|
Reference in New Issue
Block a user