]> wimlib.net Git - wimlib/blobdiff - programs/imagex.c
Fix a couple random issues
[wimlib] / programs / imagex.c
index cf118b336656e6434681320d04d9b65175568031..c02ce6f6f65b12085df2b60153a3888e5553b370 100644 (file)
@@ -413,7 +413,7 @@ static int imagex_append(int argc, const char **argv)
                        goto out_write;
                }
        } else {
-               if (errno != -ENOENT)
+               if (errno != ENOENT)
                        imagex_error_with_errno("Failed to stat `%s'", dir);
        }
 #endif
@@ -522,7 +522,7 @@ static int imagex_apply(int argc, const char **argv)
                        goto out;
                }
        } else {
-               if (errno != -ENOENT)
+               if (errno != ENOENT)
                        imagex_error_with_errno("Failed to stat `%s'", dir);
        }
 #endif