Continue patch for MS Visual C build. Thanks to Ianos Gnatiuc 2:5030/830.17@fidonet

This commit is contained in:
Stas Degteff 2005-08-11 12:34:32 +00:00
parent 951f2a5b28
commit 8e0bee0697

View File

@ -121,9 +121,10 @@ void gposixdir::cd(const char *name, bool relative)
ok = maketruepath(dirname);
entries.clear();
ndirname = dirname;
if (ndirname[ndirname.size()-1] != '/')
ndirname += "/";
ndirname += "*";
if ((ndirname.end() > ndirname.begin()) && (*(ndirname.end()-1) == '/'))
ndirname += "*";
else
ndirname += "/*";
struct _finddata_t de;
long d = _findfirst(ndirname.c_str(), &de);
if(d == -1) {