git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9585
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{
wxFileName filename(dir);
wxArrayString dirs = filename.GetDirs();
{
wxFileName filename(dir);
wxArrayString dirs = filename.GetDirs();
+ dirs.Add(filename.GetName());
size_t count = dirs.GetCount();
size_t i;
size_t count = dirs.GetCount();
size_t i;
HANDLE hFind;
pathOut = wxEmptyString;
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;
size_t i;
wxString tmpPath;
{
// 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
{
// 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(':'))
{
if (tmpPath.Last() == wxT(':'))
{