diff options
-rw-r--r-- | desktop/unx/source/pagein.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop/unx/source/pagein.c b/desktop/unx/source/pagein.c index 03b26dc00419..181637fc94e4 100644 --- a/desktop/unx/source/pagein.c +++ b/desktop/unx/source/pagein.c @@ -52,7 +52,7 @@ int isRotational(char const * path) struct stat out; int major, minor; char type; - if( !stat( path , &out ) == 0) + if(stat( path , &out ) == -1) return 1; major = major(out.st_dev); minor = 0; /* minor(out.st_dev); only the device itself has a queue */ |