From: Julian Smart Date: Thu, 2 Mar 2006 12:46:06 +0000 (+0000) Subject: Use temp directory and don't prepend two backslashes, on WinCE X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/dd28209328c501fa130eaa43f8a24dc6a0c7ce33?ds=inline Use temp directory and don't prepend two backslashes, on WinCE git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37775 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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;