wxString result;
gs_dir->GetFirst(&result, wxFileNameFromPath(spec), dirFlags);
if ( result.IsEmpty() )
+ {
wxDELETE(gs_dir);
+ return result;
+ }
return gs_dirPath + result;
}
gs_dir->GetNext(&result);
if ( result.IsEmpty() )
+ {
wxDELETE(gs_dir);
+ return result;
+ }
return gs_dirPath + result;
}
delete [] cbuf;
}
#endif
+
+#ifdef __DJGPP__
+ // VS: DJGPP is a strange mix of DOS and UNIX API and returns paths with
+ // / deliminers. We don't like that.
+ for (wxChar *ch = buf; *ch; ch++)
+ if (*ch == wxT('/')) *ch = wxT('\\');
+#endif
+
return buf;
}