+ check if file handle is valid in FileInfo::isFile

This commit is contained in:
wmayer 2014-12-04 16:44:22 +01:00
parent 6872b2c393
commit 4964628291

View File

@ -325,7 +325,7 @@ bool FileInfo::isFile () const
std::wstring wstr = toStdWString();
FILE* fd = _wfopen(wstr.c_str(), L"rb");
bool ok = (fd != 0);
fclose(fd);
if (fd) fclose(fd);
return ok;
}
#else