X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fmount_image.c;h=9a0c8a72e016658834ef2a18979bcd18aa04b01c;hp=7543b6e424b67770a7d35376b753f3e7b76386a1;hb=4f433755e8f9ef79dbb4699430d047f74e338e82;hpb=3ffb2cde078ae8f62d542ab89166e1059c13d758 diff --git a/src/mount_image.c b/src/mount_image.c index 7543b6e4..9a0c8a72 100644 --- a/src/mount_image.c +++ b/src/mount_image.c @@ -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;