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:
@@ -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 ++;
|
||||
}
|
||||
|
Reference in New Issue
Block a user