Continue patch for MS Visual C build. Thanks to Ianos Gnatiuc 2:5030/830.17@fidonet
This commit is contained in:
parent
951f2a5b28
commit
8e0bee0697
@ -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) {
|
||||
|
Reference in New Issue
Block a user