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:
Vadim Zeitlin
2002-01-04 13:04:42 +00:00
parent df6e7577e3
commit 3752e0abf1

View File

@@ -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;