Bug fix to Mkdirs and GetLongPath

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9585 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 2001-03-26 15:51:02 +00:00
parent fc71ef6e17
commit 77fe02a8e9

View File

@ -215,6 +215,7 @@ bool wxFileName::Mkdir( const wxString &dir, int perm, bool full )
{
wxFileName filename(dir);
wxArrayString dirs = filename.GetDirs();
dirs.Add(filename.GetName());
size_t count = dirs.GetCount();
size_t i;
@ -620,7 +621,10 @@ wxString wxFileName::GetLongPath() const
HANDLE hFind;
pathOut = wxEmptyString;
size_t count = m_dirs.GetCount();
wxArrayString dirs = GetDirs();
dirs.Add(GetName());
size_t count = dirs.GetCount();
size_t i;
wxString tmpPath;
@ -628,7 +632,7 @@ wxString wxFileName::GetLongPath() const
{
// We're using pathOut to collect the long-name path,
// but using a temporary for appending the last path component which may be short-name
tmpPath = pathOut + m_dirs[i];
tmpPath = pathOut + dirs[i];
if (tmpPath.Last() == wxT(':'))
{