+ Fixed leaked handle when _stat fails

This commit is contained in:
Ladislav Zezula
2017-01-17 20:41:26 +01:00
parent 9915997070
commit ee273364aa

View File

@@ -156,6 +156,7 @@ static bool BaseFile_Open(TFileStream * pStream, const TCHAR * szFileName, DWORD
if(fstat64(handle, &fileinfo) == -1)
{
nLastError = errno;
close(handle);
return false;
}