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;