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);
|
ok = maketruepath(dirname);
|
||||||
entries.clear();
|
entries.clear();
|
||||||
ndirname = dirname;
|
ndirname = dirname;
|
||||||
if (ndirname[ndirname.size()-1] != '/')
|
if ((ndirname.end() > ndirname.begin()) && (*(ndirname.end()-1) == '/'))
|
||||||
ndirname += "/";
|
ndirname += "*";
|
||||||
ndirname += "*";
|
else
|
||||||
|
ndirname += "/*";
|
||||||
struct _finddata_t de;
|
struct _finddata_t de;
|
||||||
long d = _findfirst(ndirname.c_str(), &de);
|
long d = _findfirst(ndirname.c_str(), &de);
|
||||||
if(d == -1) {
|
if(d == -1) {
|
||||||
|
Reference in New Issue
Block a user