]> git.saurik.com Git - wxWidgets.git/commitdiff
Applied patch to fix silly filenames in CreateTempFileName
authorJulian Smart <julian@anthemion.co.uk>
Mon, 30 May 2005 08:30:43 +0000 (08:30 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Mon, 30 May 2005 08:30:43 +0000 (08:30 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34399 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/filename.cpp

index 8a9cf92f5c110382229f48c18a9826fd39343828..c1a128ffc155dbbb1d0c6af8ae80f7ced90cba44 100644 (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 ++;
     }