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
This commit is contained in:
Julian Smart 2006-03-02 12:46:06 +00:00
parent 3f3af7e7f8
commit dd28209328

View 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;