]> git.saurik.com Git - wxWidgets.git/commitdiff
Use temp directory and don't prepend two backslashes, on WinCE
authorJulian Smart <julian@anthemion.co.uk>
Thu, 2 Mar 2006 12:46:06 +0000 (12:46 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Thu, 2 Mar 2006 12:46:06 +0000 (12:46 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37775 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/filename.cpp

index 2e4c842d66633c653e639fd79a525e4f6f23fbe3..959224c908482fe8f464e90118022929e8fd7f52 100644 (file)
@@ -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;