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

This commit is contained in:
wmayer
2014-12-04 16:44:22 +01:00
parent 2698f9bc60
commit b5674274e2

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