Fix a bug introduced in the previous commit

This commit is contained in:
Alexander Skovpen 2018-07-12 08:07:07 +03:00 committed by dukelsky
parent 5937dcacdb
commit e0664f7887

4
goldlib/gall/gdirposx.cpp Executable file → Normal file
View File

@ -126,7 +126,11 @@ void gposixdir::cd(const char *name, bool relative)
else else
ndirname += "/*"; ndirname += "/*";
struct _finddata_t de; struct _finddata_t de;
#if defined(_MSC_VER) && _MSC_VER>1800
intptr_t d = _findfirst(ndirname.c_str(), &de); intptr_t d = _findfirst(ndirname.c_str(), &de);
#else
long d = _findfirst(ndirname.c_str(), &de);
#endif
if(d == -1) { if(d == -1) {
if(is_dir(dirname)) if(is_dir(dirname))
ok = true; ok = true;