]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - aft.c
Fix checking of return values from osl_open().
[paraslash.git] / aft.c
diff --git a/aft.c b/aft.c
index db4c494d07bcd7c759de9708d1f2c30d4ba278aa..f425b6d3d81431b61fe0541742905c4af6b1af96 100644 (file)
--- a/aft.c
+++ b/aft.c
@@ -2574,7 +2574,7 @@ static int aft_open(const char *dir)
        }
        PARA_INFO_LOG("failed to open audio file table\n");
        audio_file_table = NULL;
-       if (ret >= 0 || is_errno(-ret, ENOENT))
+       if (ret >= 0 || ret == -OSL_ERRNO_TO_PARA_ERROR(E_OSL_NOENT))
                return 1;
        return ret;
 }