X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6bda7391c10e2341d5ef407df1330b9e39c202f8..a6d27d480bbdc4a58c90877d3c5bc32d62aabde9:/src/common/filename.cpp diff --git a/src/common/filename.cpp b/src/common/filename.cpp index 02e83a3506..0659a8b565 100644 --- a/src/common/filename.cpp +++ b/src/common/filename.cpp @@ -585,7 +585,7 @@ wxFileName::CreateTempFileName(const wxString& prefix, wxFile *fileTemp) } #elif defined(__WINDOWS__) && !defined(__WXMICROWIN__) -#ifdef __WIN32__ + if ( dir.empty() ) { if ( !::GetTempPath(MAX_PATH, wxStringBuffer(dir, MAX_PATH + 1)) ) @@ -612,12 +612,6 @@ wxFileName::CreateTempFileName(const wxString& prefix, wxFile *fileTemp) path.clear(); } -#else // Win16 - if ( !::GetTempFileName(NULL, prefix, 0, wxStringBuffer(path, 1025)) ) - { - path.clear(); - } -#endif // Win32/16 #else // !Windows if ( dir.empty() )