From dd28209328c501fa130eaa43f8a24dc6a0c7ce33 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Thu, 2 Mar 2006 12:46:06 +0000 Subject: [PATCH] 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 --- src/common/filename.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.45.2