X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6091caf0882b123cfc6698fb1f35a9e8d7ce5f59..9dc1d18069c519c807c2476a837e710b5ef932c6:/src/common/filename.cpp?ds=sidebyside diff --git a/src/common/filename.cpp b/src/common/filename.cpp index 2e4c842d66..959224c908 100644 --- a/src/common/filename.cpp +++ b/src/common/filename.cpp @@ -621,7 +621,8 @@ wxFileName::CreateTempFileName(const wxString& prefix, wxFile *fileTemp) if (dir.empty()) { // FIXME. Create \temp dir? - dir = wxT("\\"); + if (DirExists(wxT("\\temp"))) + dir = wxT("\\temp"); } path = dir + wxT("\\") + name; int i = 1;