Fix a bug introduced in the previous commit
This commit is contained in:
parent
5937dcacdb
commit
e0664f7887
4
goldlib/gall/gdirposx.cpp
Executable file → Normal file
4
goldlib/gall/gdirposx.cpp
Executable file → Normal file
@ -126,7 +126,11 @@ void gposixdir::cd(const char *name, bool relative)
|
||||
else
|
||||
ndirname += "/*";
|
||||
struct _finddata_t de;
|
||||
#if defined(_MSC_VER) && _MSC_VER>1800
|
||||
intptr_t d = _findfirst(ndirname.c_str(), &de);
|
||||
#else
|
||||
long d = _findfirst(ndirname.c_str(), &de);
|
||||
#endif
|
||||
if(d == -1) {
|
||||
if(is_dir(dirname))
|
||||
ok = true;
|
||||
|
Reference in New Issue
Block a user