mirror of
https://github.com/leozide/leocad
synced 2025-01-17 18:11:42 +01:00
Fixed Windows build.
This commit is contained in:
parent
d6efc97089
commit
657df22db7
1 changed files with 1 additions and 1 deletions
|
@ -212,7 +212,7 @@ void lcDiskFile::SetLength(size_t NewLength)
|
|||
size_t lcDiskFile::GetLength() const
|
||||
{
|
||||
struct stat st;
|
||||
if (fstat(fileno(mFile), &st) < 0 || !S_ISREG(st.st_mode))
|
||||
if (fstat(fileno(mFile), &st) < 0 || (st.st_mode & S_IFMT) == S_IFREG)
|
||||
return 0;
|
||||
|
||||
return st.st_size;
|
||||
|
|
Loading…
Reference in a new issue