Applied patch to fix silly filenames in CreateTempFileName

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34399 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2005-05-30 08:30:43 +00:00
parent e8739575c5
commit f05ba7ff38

View File

@@ -614,11 +614,11 @@ wxFileName::CreateTempFileName(const wxString& prefix, wxFile *fileTemp)
// FIXME. Create \temp dir?
dir = wxT("\\");
}
path = dir + wxT("\\") + prefix;
path = dir + wxT("\\") + name;
int i = 1;
while (FileExists(path))
{
path = dir + wxT("\\") + prefix ;
path = dir + wxT("\\") + name ;
path << i;
i ++;
}