+ check if file handle is valid in FileInfo::isFile
This commit is contained in:
parent
6872b2c393
commit
4964628291
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user