X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6091caf0882b123cfc6698fb1f35a9e8d7ce5f59..c56ae04274fda26269c6d06be34cf59a45eb70ce:/src/common/filename.cpp 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;