]> wimlib.net Git - wimlib/blobdiff - src/mount_image.c
Cleanup
[wimlib] / src / mount_image.c
index 7543b6e424b67770a7d35376b753f3e7b76386a1..9a0c8a72e016658834ef2a18979bcd18aa04b01c 100644 (file)
@@ -1943,7 +1943,7 @@ wimfs_read(const char *path, char *buf, size_t size,
        case RESOURCE_IN_WIM:
                if (read_partial_wim_stream_into_buf(fd->f_lte, size,
                                                     offset, buf))
-                       ret = -errno;
+                       ret = errno ? -errno : -EIO;
                else
                        ret = size;
                break;