summaryrefslogtreecommitdiff
path: root/src/KM_fileio.cpp
diff options
context:
space:
mode:
authorjhurst <jhurst@cinecert.com>2008-05-20 22:40:09 +0000
committerjhurst <>2008-05-20 22:40:09 +0000
commit8bf17481fbd360094c04d25023986b38e57205bc (patch)
tree222c85334489434c4bb2177212956c205d2c2a93 /src/KM_fileio.cpp
parent71e5dbde64e9186cfd5de462553485612218d6fc (diff)
version reorg, precedence patch for stat check
Diffstat (limited to 'src/KM_fileio.cpp')
-rw-r--r--src/KM_fileio.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/KM_fileio.cpp b/src/KM_fileio.cpp
index 5a56c44..918a852 100644
--- a/src/KM_fileio.cpp
+++ b/src/KM_fileio.cpp
@@ -103,7 +103,7 @@ do_stat(const char* path, fstat_t* stat_info)
if ( stat(path, stat_info) == -1L )
result = Kumu::RESULT_FILEOPEN;
- if ( stat_info->st_mode & (S_IFREG|S_IFLNK|S_IFDIR) == 0 )
+ if ( (stat_info->st_mode & (S_IFREG|S_IFLNK|S_IFDIR)) == 0 )
result = Kumu::RESULT_FILEOPEN;
#endif
@@ -123,7 +123,7 @@ do_fstat(HANDLE handle, fstat_t* stat_info)
if ( fstat(handle, stat_info) == -1L )
result = Kumu::RESULT_FILEOPEN;
- if ( stat_info->st_mode & (S_IFREG|S_IFLNK|S_IFDIR) == 0 )
+ if ( (stat_info->st_mode & (S_IFREG|S_IFLNK|S_IFDIR)) == 0 )
result = Kumu::RESULT_FILEOPEN;
return result;