From: Julian Smart Date: Mon, 30 May 2005 08:30:43 +0000 (+0000) Subject: Applied patch to fix silly filenames in CreateTempFileName X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f05ba7ff3864a9b6558a1c74bc5360078479b3a3 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 --- diff --git a/src/common/filename.cpp b/src/common/filename.cpp index 8a9cf92f5c..c1a128ffc1 100644 --- a/src/common/filename.cpp +++ b/src/common/filename.cpp @@ -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 ++; }